mirror of
https://github.com/nmap/nmap.git
synced 2026-11-18 17:11:18 +08:00
Avoid global access in nmap.receive_buf
This commit is contained in:
+1
-3
@@ -778,9 +778,7 @@ static int receive_buf (lua_State *L, int status, lua_KContext ctx)
|
||||
}
|
||||
else /* string */
|
||||
{
|
||||
lua_getglobal(L, "string");
|
||||
lua_getfield(L, -1, "find");
|
||||
lua_replace(L, -2);
|
||||
lua_getfield(L, 2, "find");
|
||||
lua_pushvalue(L, 5);
|
||||
lua_pushvalue(L, 2);
|
||||
lua_call(L, 2, 2); /* we do not allow yields */
|
||||
|
||||
Reference in New Issue
Block a user