diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-21 22:09:19 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-21 22:09:19 +0200 |
commit | 730af24de8dba66b80407e83caabaa424d4f89b2 (patch) | |
tree | f7f664fe3ff8ed68daafd8b22a55aa9fdf0afc7f | |
parent | a3fa6f3099ba600c8c589332e73d83e9596c6361 (diff) | |
download | libssh-730af24de8dba66b80407e83caabaa424d4f89b2.tar.gz libssh-730af24de8dba66b80407e83caabaa424d4f89b2.tar.xz libssh-730af24de8dba66b80407e83caabaa424d4f89b2.zip |
Fixed a use-after-free in match_hashed_host()
-rw-r--r-- | libssh/keyfiles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/keyfiles.c b/libssh/keyfiles.c index d7f5761e..147719c5 100644 --- a/libssh/keyfiles.c +++ b/libssh/keyfiles.c @@ -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(); |