From b51566ad3f8a4a28e7478171c5e23517bd2b4c62 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 27 Jul 2020 17:32:16 +0200 Subject: ssh: Various connection closing fixes --- ssh/tomsg_clientlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssh/tomsg_clientlib.c') diff --git a/ssh/tomsg_clientlib.c b/ssh/tomsg_clientlib.c index cf02208..c14d5c5 100644 --- a/ssh/tomsg_clientlib.c +++ b/ssh/tomsg_clientlib.c @@ -364,7 +364,7 @@ send_error_return: byte = sendret; writeall(thread_w, &byte, 1); free_client: - sshnc_close(conn); + if (conn) sshnc_close(conn); if (client) { if (client->buffer) free(client->buffer); if (client->inflight) free(client->inflight); -- cgit v1.2.3-54-g00ecf