From b0a62d2aca8ccd1e2fe76ddaa5265b4b070bea5a Mon Sep 17 00:00:00 2001 From: batrick Date: Sun, 27 Jul 2008 02:55:31 +0000 Subject: [PATCH] Applied Jah's patch to fix --script-updatedb use of an old index for the script table. http://seclists.org/nmap-dev/2008/q3/0164.html --- nse_init.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_init.cc b/nse_init.cc index 77bf19712..0fd051c2f 100644 --- a/nse_init.cc +++ b/nse_init.cc @@ -381,7 +381,7 @@ int init_updatedb (lua_State *L) lua_getglobal(L, "string"); lua_getfield(L, -1, "lower"); lua_replace(L, -2); lua_pushnil(L); - while (lua_next(L, -2) != 0) + while (lua_next(L, -3) != 0) { lua_pushvalue(L, -3); // string.lower lua_insert(L, -2); // put below category string