mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
Fixed a use-after-free in match_hashed_host()
This commit is contained in:
committed by
Andreas Schneider
parent
b5e868fb8b
commit
7ba81b974e
@@ -1280,9 +1280,9 @@ static int match_hashed_host(SSH_SESSION *session, const char *host,
|
||||
leave_function();
|
||||
return 0;
|
||||
}
|
||||
SAFE_FREE(source);
|
||||
|
||||
hash = base64_to_bin(b64hash);
|
||||
SAFE_FREE(source);
|
||||
if (hash == NULL) {
|
||||
buffer_free(salt);
|
||||
leave_function();
|
||||
|
||||
Reference in New Issue
Block a user