1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

packet: Use SSH_BUFFER_FREE()

Fixes T183

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2019-11-05 13:15:33 +01:00
parent 476bde4d69
commit 35799bb1c6

View File

@@ -1826,7 +1826,7 @@ int ssh_packet_send(ssh_session session)
SSH_LOG(SSH_LOG_PACKET, "Queued packet triggered rekey");
return ssh_send_rekex(session);
}
ssh_buffer_free(session->out_buffer);
SSH_BUFFER_FREE(session->out_buffer);
session->out_buffer = ssh_list_pop_head(struct ssh_buffer_struct *,
session->out_queue);
payload = (uint8_t *)ssh_buffer_get(session->out_buffer);