1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 17:09:02 +00:00

fix an os detection bug to prevent system from always doing os detection, even when it wasn't requested

This commit is contained in:
fyodor
2006-06-27 00:49:32 +00:00
parent 91af49292a
commit fd8d3fae6e
2 changed files with 6 additions and 2 deletions

View File

@@ -1,7 +1,11 @@
# Nmap Changelog ($Id$); -*-text-*-
Nmap 4.20ALPHA3
o Added back Win32 support thanks to a patch by kx (kxmail(a)gmail.com)
o Added back Win32 support thanks to a patch by kx
o Fix a problem which caused OS detection to be done in some cases
even if the user didn't request it. Thanks to Diman Todorov for the
fix.
Nmap 4.20ALPHA2

View File

@@ -1561,7 +1561,7 @@ int nmap_main(int argc, char *argv[]) {
service_scan(Targets);
}
if (o.osscan != OS_SCAN_SYS_1_ONLY)
if (o.osscan == OS_SCAN_DEFAULT || o.osscan == OS_SCAN_SYS_2_ONLY)
os_scan_2(Targets);
for(targetno = 0; targetno < Targets.size(); targetno++) {