From e3d08f7e94990c2773bb0a364416e895e5880a7b Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 25 Oct 2018 04:53:59 +0000 Subject: [PATCH] Avoid shutting down SSL descriptor twice. Fixes #1365 --- ncat/ncat_exec_win.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ncat/ncat_exec_win.c b/ncat/ncat_exec_win.c index 099d67175..8dcdf88b2 100644 --- a/ncat/ncat_exec_win.c +++ b/ncat/ncat_exec_win.c @@ -572,6 +572,8 @@ loop_end: if (o.ssl && info->fdn.ssl) { SSL_shutdown(info->fdn.ssl); SSL_free(info->fdn.ssl); + /* avoid shutting down and freeing this again in subprocess_info_close */ + info->fdn.ssl = NULL; } #endif