mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
Silence unnecessary warning after earlier code changes
This commit is contained in:
@@ -486,11 +486,9 @@ void PortList::setPortState(u16 portno, u8 protocol, int state, int *oldstate) {
|
||||
current = createPort(portno, protocol, &created);
|
||||
|
||||
if (!created) {
|
||||
/* We must discount our statistics from the old values. Also warn
|
||||
if a complete duplicate */
|
||||
if (o.debugging && current->state == state) {
|
||||
error("Duplicate port (%hu/%s)", portno, proto2ascii_lowercase(protocol));
|
||||
}
|
||||
/* We must discount our statistics from the old values.
|
||||
* Duplicates are not a problem and are expected due to optimistic state
|
||||
* setting in ultrascan_port_pspec_update() */
|
||||
state_counts_proto[proto][current->state]--;
|
||||
if (oldstate) *oldstate = current->state;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user