1
0
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:
dmiller
2016-01-04 16:48:09 +00:00
parent 226a05af31
commit ee048d5349

View File

@@ -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;
}
}