mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 05:09:02 +00:00
A bunch of standardization changes to nmap-os-fingerprints from Steve Martin
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Nmap Changelog ($Id$)
|
||||
|
||||
o Fixed a crash found during certain UDP version scans. The crash was
|
||||
discovered and reported by Ron (iago(a)valhallalegends.com) and fixed
|
||||
by Doug Hoyte (doug(a)hcsw.com).
|
||||
|
||||
o Added --iflist argument which prints a list of system interfaces and
|
||||
routes detected by Nmap.
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1169,7 +1169,7 @@ ServiceProbe *AllProbes::getProbeByName(const char *name, int proto) {
|
||||
// scan protocols.
|
||||
int AllProbes::isExcluded(unsigned short port, int proto) {
|
||||
unsigned short *p=NULL;
|
||||
int count=-1;
|
||||
int count=-1,i;
|
||||
|
||||
if (proto == IPPROTO_TCP) {
|
||||
p = excludedports->tcp_ports;
|
||||
@@ -1181,8 +1181,9 @@ int AllProbes::isExcluded(unsigned short port, int proto) {
|
||||
fatal("Bad proto number (%d) specified in AllProbes::isExcluded", proto);
|
||||
}
|
||||
|
||||
for (;count >= 0;count--)
|
||||
if (p[count] == port) return 1;
|
||||
for (i=0; i<count; i++)
|
||||
if (p[i] == port)
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user