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
This commit is contained in:
batrick 2008-12-07 09:22:29 +00:00
parent c361d17734
commit e6505d9954

View file

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