diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-07-27 17:32:16 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-07-27 17:32:16 +0200 |
commit | b51566ad3f8a4a28e7478171c5e23517bd2b4c62 (patch) | |
tree | 07eb6e4d14d77c216e663879ece6ac47ee797e92 /ssh/tomsg_clientlib.c | |
parent | 701c8add0d75f94ca2c34cafa686a54aee5854c6 (diff) |
ssh: Various connection closing fixes
Diffstat (limited to 'ssh/tomsg_clientlib.c')
-rw-r--r-- | ssh/tomsg_clientlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |