mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Fix the printing of the warning
Warning: --min-parallelism and --max-parallelism are ignored with --scan-delay. It was checking o.min_parallelism against -1, when its default value is 0.
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -1340,7 +1340,7 @@ int nmap_main(int argc, char *argv[]) {
|
||||
if (o.scan_delay > o.maxTCPScanDelay()) o.setMaxTCPScanDelay(o.scan_delay);
|
||||
if (o.scan_delay > o.maxUDPScanDelay()) o.setMaxUDPScanDelay(o.scan_delay);
|
||||
if (o.scan_delay > o.maxSCTPScanDelay()) o.setMaxSCTPScanDelay(o.scan_delay);
|
||||
if (pre_max_parallelism != -1 || o.min_parallelism != -1)
|
||||
if (pre_max_parallelism != -1 || o.min_parallelism != 0)
|
||||
error("Warning: --min-parallelism and --max-parallelism are ignored with --scan-delay.");
|
||||
}
|
||||
if (pre_max_scan_delay != -1) {
|
||||
|
||||
Reference in New Issue
Block a user