From f6ab7a898a19b3d0ac168bf74ccbfcdcd204c7c4 Mon Sep 17 00:00:00 2001 From: dmiller Date: Fri, 22 Nov 2019 17:51:53 +0000 Subject: [PATCH] Clear up a name that conflicts with global 'ports' struct --- idle_scan.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/idle_scan.cc b/idle_scan.cc index e90401245..86dbcf9e3 100644 --- a/idle_scan.cc +++ b/idle_scan.cc @@ -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); } }