diff --git a/global_structures.h b/global_structures.h index ff3585a9f..fc1e1a174 100644 --- a/global_structures.h +++ b/global_structures.h @@ -135,16 +135,6 @@ struct udpprobeinfo { struct in_addr target; }; -struct connectsockinfo { - fd_set fds_read; - fd_set fds_write; - fd_set fds_except; - struct portinfo *socklookup[2048]; /* index socket descriptor -> scan[] - index. No OS better give us - an SD > 2047!@#$ */ - int maxsd; -}; - /* The runtime statistics used to decide how fast to proced and how many ports we can try at once */ struct scanstats { diff --git a/scan_engine.cc b/scan_engine.cc index ba73904ea..83b8bdd76 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -4915,7 +4915,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) { struct portinfo *scan = NULL, *current, *next; struct portinfolist pil; struct timeval now; - struct connectsockinfo csi; struct rpcscaninfo rsi; unsigned long j; struct serviceDeductions sd; @@ -4948,11 +4947,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) { memset(&pil, 0, sizeof(pil)); - FD_ZERO(&csi.fds_read); - FD_ZERO(&csi.fds_write); - FD_ZERO(&csi.fds_except); - csi.maxsd = 0; - if (o.max_parallelism) { ss.max_width = o.max_parallelism; } else { @@ -4966,8 +4960,6 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) { ss.initial_packet_width = box(ss.min_width, ss.max_width, ss.initial_packet_width); ss.numqueries_ideal = ss.initial_packet_width; - memset(csi.socklookup, 0, sizeof(csi.socklookup)); - get_rpc_procs(&(rsi.rpc_progs), &(rsi.rpc_number)); scan = (struct portinfo *) safe_malloc(rsi.rpc_number * sizeof(struct portinfo)); for(j = 0; j < rsi.rpc_number; j++) {