From e6505d995468788fa7b47fc239104590197024e3 Mon Sep 17 00:00:00 2001 From: batrick Date: Sun, 7 Dec 2008 09:22:29 +0000 Subject: [PATCH] Corrected nmap.print_debug_unformatted to print if the verbosity is greater than or _equal_ to the specified verbosity. See http://nmap.org/nsedoc/modules/stdnse.html#print_debug --- nse_nmaplib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index 16aefa80c..213803ac2 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -543,7 +543,7 @@ static int l_print_debug_unformatted(lua_State *L) { if (lua_gettop(L) != 2) return luaL_error(L, "Incorrect number of arguments\n"); verbosity = luaL_checkinteger(L, 1); - if (verbosity > o.verbose) return 0; + if (verbosity >= o.verbose) return 0; out = luaL_checkstring(L, 2); log_write(LOG_STDOUT, "%s DEBUG: %s\n", SCRIPT_ENGINE, out);