diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-21 22:09:19 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-06-21 22:18:43 +0200 |
commit | 7ba81b974ef45ac78620c1ec5140c81f84b6f06f (patch) | |
tree | 059740b82f9c74efc16191f00f3efd823dab6c87 /libssh | |
parent | b5e868fb8bf496a17589f0dc3fe87952d17854ca (diff) | |
download | libssh-7ba81b974ef45ac78620c1ec5140c81f84b6f06f.tar.gz libssh-7ba81b974ef45ac78620c1ec5140c81f84b6f06f.tar.xz libssh-7ba81b974ef45ac78620c1ec5140c81f84b6f06f.zip |
Fixed a use-after-free in match_hashed_host()
Diffstat (limited to 'libssh')
-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(); |