1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 02:19:04 +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

@@ -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++) {