mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Only get SSL options if we use them, currently for NO_SSLv2
This commit is contained in:
@@ -448,7 +448,9 @@ void handle_connect_result(struct npool *ms, struct nevent *nse, enum nse_status
|
|||||||
nse->status = NSE_STATUS_ERROR;
|
nse->status = NSE_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
#if SSL_OP_NO_SSLv2 != 0
|
||||||
long options = SSL_get_options(iod->ssl);
|
long options = SSL_get_options(iod->ssl);
|
||||||
|
#endif
|
||||||
|
|
||||||
sslerr = SSL_get_error(iod->ssl, rc);
|
sslerr = SSL_get_error(iod->ssl, rc);
|
||||||
if (rc == -1 && sslerr == SSL_ERROR_WANT_READ) {
|
if (rc == -1 && sslerr == SSL_ERROR_WANT_READ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user