1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Allow --script-timeout 0 to mean 'no timeout' to override -T5

This commit is contained in:
dmiller
2017-08-03 02:10:00 +00:00
parent 9ddb870666
commit f784d350e4

View File

@@ -749,7 +749,7 @@ void parse_options(int argc, char **argv) {
o.chooseScripts(optarg);
} else if (optcmp(long_options[option_index].name, "script-timeout") == 0) {
l = tval2secs(optarg);
if ( l <= 0 )
if ( l < 0 )
fatal("Bogus --script-timeout argument specified");
delayed_options.pre_scripttimeout = l;
} else