1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Avoid shutting down SSL descriptor twice. Fixes #1365

This commit is contained in:
dmiller
2018-10-25 04:53:59 +00:00
parent 8cb2b0ea2a
commit e3d08f7e94

View File

@@ -572,6 +572,8 @@ loop_end:
if (o.ssl && info->fdn.ssl) { if (o.ssl && info->fdn.ssl) {
SSL_shutdown(info->fdn.ssl); SSL_shutdown(info->fdn.ssl);
SSL_free(info->fdn.ssl); SSL_free(info->fdn.ssl);
/* avoid shutting down and freeing this again in subprocess_info_close */
info->fdn.ssl = NULL;
} }
#endif #endif