aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-04-18 10:27:01 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-04-18 10:27:01 +0200
commit64985f7beac732aad839c9a0bb53d143c0ab5639 (patch)
tree8f35954ea959f880d43823aaa43fa96b97b9f8f4
parent3f562ee5861fe194316c05b95aa624b74ce630da (diff)
downloadlibssh-64985f7beac732aad839c9a0bb53d143c0ab5639.tar.gz
libssh-64985f7beac732aad839c9a0bb53d143c0ab5639.tar.xz
libssh-64985f7beac732aad839c9a0bb53d143c0ab5639.zip
server: Do not leak pubkey_blob in ssh_get_key_params()
CID 1388448 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.c b/src/server.c
index 2ae87792..a7e7e410 100644
--- a/src/server.c
+++ b/src/server.c
@@ -278,6 +278,7 @@ int ssh_get_key_params(ssh_session session, ssh_key *privkey){
}
rc = ssh_dh_import_pubkey_blob(session, pubkey_blob);
+ ssh_string_free(pubkey_blob);
if (rc != 0) {
ssh_set_error(session,
SSH_FATAL,