1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 12:41:29 +00:00

Clear up a name that conflicts with global 'ports' struct

This commit is contained in:
dmiller
2019-11-22 17:51:53 +00:00
parent ed66ed03ec
commit f6ab7a898a

View File

@@ -632,13 +632,13 @@ static void initialize_idleproxy(struct idle_proxy_info *proxy, char *proxyName,
} else if (ports->ack_ping_count > 0) {
proxy->probe_port = ports->ack_ping_ports[0];
} else {
u16 *ports;
u16 *tmp_ports;
int count;
getpts_simple(DEFAULT_TCP_PROBE_PORT_SPEC, SCAN_TCP_PORT, &ports, &count);
getpts_simple(DEFAULT_TCP_PROBE_PORT_SPEC, SCAN_TCP_PORT, &tmp_ports, &count);
assert(count > 0);
proxy->probe_port = ports[0];
free(ports);
proxy->probe_port = tmp_ports[0];
free(tmp_ports);
}
}