1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-07 13:11:28 +00:00

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
This commit is contained in:
batrick
2008-07-27 02:55:31 +00:00
parent 5f2e6cf5ac
commit b0a62d2aca

View File

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