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

Only get SSL options if we use them, currently for NO_SSLv2

This commit is contained in:
dmiller
2020-09-10 16:25:10 +00:00
parent f01567b353
commit f6d21da5cd

View File

@@ -448,7 +448,9 @@ void handle_connect_result(struct npool *ms, struct nevent *nse, enum nse_status
nse->status = NSE_STATUS_ERROR;
}
} else {
#if SSL_OP_NO_SSLv2 != 0
long options = SSL_get_options(iod->ssl);
#endif
sslerr = SSL_get_error(iod->ssl, rc);
if (rc == -1 && sslerr == SSL_ERROR_WANT_READ) {