Fixed a use-after-free in match_hashed_host()

This commit is contained in:
Aris Adamantiadis
2009-06-21 22:09:19 +02:00
committed by Andreas Schneider
parent b5e868fb8b
commit 7ba81b974e

View File

@@ -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();