Fix possible memory corruption (#14)

Signed-off-by: Andreas Schneider <mail@cynapses.org>
This commit is contained in:
milo
2009-07-28 18:01:07 +02:00
committed by Andreas Schneider
parent f4b3ef7604
commit 1b9676a0cc
7 changed files with 24 additions and 24 deletions

View File

@@ -97,8 +97,8 @@ void ssh_cleanup(SSH_SESSION *session) {
SAFE_FREE(session->serverbanner);
SAFE_FREE(session->clientbanner);
SAFE_FREE(session->banner);
buffer_free(session->in_buffer);
buffer_free(session->out_buffer);
buffer_reinit(session->in_buffer);
buffer_reinit(session->out_buffer);
crypto_free(session->current_crypto);
crypto_free(session->next_crypto);
ssh_socket_free(session->socket);