From f784d350e463c08680da920163a49f234049cdaa Mon Sep 17 00:00:00 2001 From: dmiller Date: Thu, 3 Aug 2017 02:10:00 +0000 Subject: [PATCH] Allow --script-timeout 0 to mean 'no timeout' to override -T5 --- nmap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap.cc b/nmap.cc index 01056eb8c..512cb4a6e 100644 --- a/nmap.cc +++ b/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