mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
known_hosts: Do not leak pubkey_buffer in check_public_key()
CID: 1388447 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -274,6 +274,7 @@ static int check_public_key(ssh_session session, char **tokens) {
|
||||
|
||||
rc = ssh_dh_get_current_server_publickey_blob(session, &pubkey_blob);
|
||||
if (rc != 0) {
|
||||
ssh_buffer_free(pubkey_buffer);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user