mirror of
https://github.com/nmap/nmap.git
synced 2026-01-29 17:49:08 +00:00
Ncat: Don't call SSL_shutdown if --no-shutdown
This commit is contained in:
@@ -286,7 +286,8 @@ int fdinfo_close(struct fdinfo *fdn)
|
||||
{
|
||||
#ifdef HAVE_OPENSSL
|
||||
if (o.ssl && fdn->ssl != NULL) {
|
||||
SSL_shutdown(fdn->ssl);
|
||||
if (!o.noshutdown)
|
||||
SSL_shutdown(fdn->ssl);
|
||||
SSL_free(fdn->ssl);
|
||||
fdn->ssl = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user