Nmap Development mailing list archives
Bug in NMAP Scanning suite...
From: "RAGHAVENDRAN H. (SSG) - CTD, Chennai." <raghavh () ctd hcltech com>
Date: Mon, 8 Oct 2001 16:29:20 +0530
Hi Fyodor/List: While going through the source code for NMap, I think I found something that may be a bug. I just thought I'd bring it to your notice. It is in function: struct scan_lists *getfastports(int tcpscan, int udpscan) { int tcpportindex = 0; int udpportindex = 0; .. .. .. ports->tcp_ports[tcpportindex++] = bucket; if (usedports[bucket] & SCAN_UDP_PORT) ports->udp_ports[udpportindex++] = bucket; } if (tcpscan) ports->tcp_ports[tcpportindex] = 0; if (udpscan) ---------------> ! BUG HERE ! ports->tcp_ports[udpportindex] = 0; return ports; } Shouldn't the marked line read as: ports->udp_ports[udpportindex] = 0; i.e. tcp_ports --> udp_ports. Regards, Raghav *********************************************************************** Disclaimer: This document is intended for transmission to the named recipient only. If you are not that person, you should note that legal rights reside in this document and you are not authorized to access, read, disclose, copy, use or otherwise deal with it and any such actions are prohibited and may be unlawful. The views expressed in this document are not necessarily those of HCL Technologies Ltd. Notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail, which must be interpreted accordingly. Any representations, contractual rights or obligations shall be separately communicated in writing and signed in the original by a duly authorized officer of the relevant company. *********************************************************************** --------------------------------------------------------------------- For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).
Current thread:
- Bug in NMAP Scanning suite... RAGHAVENDRAN H. (SSG) - CTD, Chennai. (Oct 08)
- Re: Bug in NMAP Scanning suite... Fyodor (Oct 08)