1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 19:39:07 +00:00

Added handling of the new NSE_STATUS_PROXYERROR case.

This commit is contained in:
henri
2013-04-22 19:32:36 +00:00
parent c9d237f26b
commit 99258673ad
3 changed files with 26 additions and 17 deletions

View File

@@ -441,7 +441,7 @@ void FPNetworkControl::probe_transmission_handler(nsock_pool nsp, nsock_event ns
} else if (status == NSE_STATUS_EOF) {
if (o.debugging)
log_write(LOG_PLAIN, "probe_transmission_handler(): EOF\n");
} else if (status == NSE_STATUS_ERROR) {
} else if (status == NSE_STATUS_ERROR || status == NSE_STATUS_PROXYERROR) {
if (o.debugging)
log_write(LOG_PLAIN, "probe_transmission_handler(): %s failed: %s\n", nse_type2str(type), strerror(socket_errno()));
} else if (status == NSE_STATUS_TIMEOUT) {
@@ -566,7 +566,7 @@ void FPNetworkControl::response_reception_handler(nsock_pool nsp, nsock_event ns
} else if (status == NSE_STATUS_EOF) {
if (o.debugging)
log_write(LOG_PLAIN, "response_reception_handler(): EOF\n");
} else if (status == NSE_STATUS_ERROR) {
} else if (status == NSE_STATUS_ERROR || NSE_STATUS_PROXYERROR) {
if (o.debugging)
log_write(LOG_PLAIN, "response_reception_handler(): %s failed: %s\n", nse_type2str(type), strerror(socket_errno()));
} else if (status == NSE_STATUS_TIMEOUT) {