mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
socket: Properly close the proxyjump FD when proxy connection fails
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -1434,6 +1434,8 @@ exit:
|
|||||||
ssh_event_free(event);
|
ssh_event_free(event);
|
||||||
ssh_free(jump_session);
|
ssh_free(jump_session);
|
||||||
|
|
||||||
|
shutdown(jump_thread_data->fd, SHUT_RDWR);
|
||||||
|
close(jump_thread_data->fd);
|
||||||
SAFE_FREE(jump_thread_data);
|
SAFE_FREE(jump_thread_data);
|
||||||
|
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user