mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Use nse_errorcode() to get the actual errors.
This commit is contained in:
parent
b4607a5071
commit
e60ba1b617
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue