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:
@@ -278,6 +278,7 @@ int ssh_get_key_params(ssh_session session, ssh_key *privkey){
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc = ssh_dh_import_pubkey_blob(session, pubkey_blob);
|
rc = ssh_dh_import_pubkey_blob(session, pubkey_blob);
|
||||||
|
ssh_string_free(pubkey_blob);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
ssh_set_error(session,
|
ssh_set_error(session,
|
||||||
SSH_FATAL,
|
SSH_FATAL,
|
||||||
|
|||||||
Reference in New Issue
Block a user