mirror of
https://github.com/nmap/nmap.git
synced 2026-01-09 07:59:03 +00:00
Avoid printf on NULL pointer if no string is registered for the error code.
This commit is contained in:
@@ -718,7 +718,7 @@ static int do_actual_read(struct npool *ms, struct nevent *nse) {
|
||||
nse->status = NSE_STATUS_ERROR;
|
||||
nse->errnum = EIO;
|
||||
nsock_log_info("SSL_read() failed for reason %s on NSI %li",
|
||||
ERR_reason_error_string(err), iod->id);
|
||||
ERR_error_string(err, NULL), iod->id);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user