Fixed a use-after-free in match_hashed_host()

This commit is contained in:
Aris Adamantiadis
2009-06-21 22:09:19 +02:00
parent a3fa6f3099
commit 730af24de8

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