1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +00:00

Use nse_errorcode() to get the actual errors.

This commit is contained in:
henri
2012-09-21 09:08:24 +00:00
parent b4607a5071
commit e60ba1b617

View File

@@ -175,7 +175,10 @@ void telnet_event_handler(nsock_pool nsp, nsock_event nse, void *mydata) {
if (nsi_checkssl(nsi)) {
printf("SSL %s failed: %s\n", nse_type2str(type), ERR_error_string(ERR_get_error(), NULL));
} else {
printf("%s failed: %s\n", nse_type2str(type), strerror(socket_errno()));
int err;
err = nse_errorcode(nse);
printf("%s failed: (%d) %s\n", nse_type2str(type), err, strerror(err));
}
}
return;