1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-14 04:18:54 +03:00

server: Do not leak pubkey_blob in ssh_get_key_params()

CID 1388448

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-04-18 10:27:01 +02:00
parent 3f562ee586
commit 64985f7bea

View File

@@ -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,