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