mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Reset ss.numqueries_outstanding to 0 when giving up on an RPC port
because of a lack of responses. Otherwise there is no way for that number to decrease after moving on to the next port, leading to an infinite loop. Lionel Cons reported the problem and provided a debug log at http://seclists.org/nmap-dev/2009/q4/364.
This commit is contained in:
@@ -5501,6 +5501,7 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) {
|
||||
log_write(LOG_STDOUT, "RPC Scan giving up on port %hu proto %d due to repeated lack of response\n", rsi.rpc_current_port->portno, rsi.rpc_current_port->proto);
|
||||
}
|
||||
rsi.rpc_status = RPC_STATUS_NOT_RPC;
|
||||
ss.numqueries_outstanding = 0;
|
||||
break;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user