mirror of
https://github.com/nmap/nmap.git
synced 2026-09-01 16:02:01 +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:
parent
91af49292a
commit
fd8d3fae6e
2 changed files with 6 additions and 2 deletions
2
nmap.cc
2
nmap.cc
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue