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