diff options
author | milo <milo.sshiva@gmail.com> | 2009-07-28 18:01:07 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-08-07 11:38:18 +0200 |
commit | 74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85 (patch) | |
tree | 646ab1241803eba56191983969ee1da58372bed6 /libssh/kex.c | |
parent | 232aca896906112e7e0e3206f4ec4835c5ad306a (diff) | |
download | libssh-74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85.tar.gz libssh-74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85.tar.xz libssh-74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85.zip |
Fix possible memory corruption (#14)
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'libssh/kex.c')
-rw-r--r-- | libssh/kex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/kex.c b/libssh/kex.c index fca16fbf..372c94cd 100644 --- a/libssh/kex.c +++ b/libssh/kex.c @@ -421,8 +421,8 @@ int ssh_send_kex(SSH_SESSION *session, int server_kex) { leave_function(); return 0; error: - buffer_free(session->out_buffer); - buffer_free(session->out_hashbuf); + buffer_reinit(session->out_buffer); + buffer_reinit(session->out_hashbuf); string_free(str); leave_function(); |