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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user