1
0
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:
kris
2007-01-28 13:18:32 +00:00
parent a721fd621d
commit e326bc0266

View File

@@ -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)");