mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
kex: Use SSH_BUFFER_FREE()
Fixes T183
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 3ab8b76921)
This commit is contained in:
@@ -1200,9 +1200,9 @@ int ssh_make_sessionid(ssh_session session)
|
|||||||
|
|
||||||
rc = SSH_OK;
|
rc = SSH_OK;
|
||||||
error:
|
error:
|
||||||
ssh_buffer_free(buf);
|
SSH_BUFFER_FREE(buf);
|
||||||
ssh_buffer_free(client_hash);
|
SSH_BUFFER_FREE(client_hash);
|
||||||
ssh_buffer_free(server_hash);
|
SSH_BUFFER_FREE(server_hash);
|
||||||
|
|
||||||
session->in_hashbuf = NULL;
|
session->in_hashbuf = NULL;
|
||||||
session->out_hashbuf = NULL;
|
session->out_hashbuf = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user