mirror of
https://github.com/nmap/nmap.git
synced 2026-09-06 02:21:37 +00:00
Allow --script-timeout 0 to mean 'no timeout' to override -T5
This commit is contained in:
parent
9ddb870666
commit
f784d350e4
1 changed files with 1 additions and 1 deletions
2
nmap.cc
2
nmap.cc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue