mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +00:00
Fix --max-os-tries and --max-rtt-timeout options. There was a typo which caused two optcmp()s to be checking for max-rtt-timeout instead of one for that and one for max-os-tries. Since the first one was supposed to check for max-os-tries, --max-rtt-timeout has been setting max-os-tries. This meant there was no way to set max-rtt-timeout, and --max-os-tries always failed with an error message.
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -637,7 +637,7 @@ int nmap_main(int argc, char *argv[]) {
|
||||
o.scriptupdatedb = 1;
|
||||
} else
|
||||
#endif
|
||||
if (optcmp(long_options[option_index].name, "max-rtt-timeout") == 0) {
|
||||
if (optcmp(long_options[option_index].name, "max-os-tries") == 0) {
|
||||
l = tval2msecs(optarg);
|
||||
if (l < 1 || l > 50)
|
||||
fatal("Bogus --max-os-tries argument specified, must be between 1 and 50 (inclusive)");
|
||||
|
||||
Reference in New Issue
Block a user