mirror of
https://github.com/nmap/nmap.git
synced 2026-02-14 17:36:33 +00:00
Changed a bad reference to the table.remove function for the mutex code.
The main branch does not yet have the changes to init that includes all Lua functions being in the Registry with shorthand names.
This commit is contained in:
@@ -67,7 +67,9 @@ static int aux_mutex (lua_State *L)
|
||||
lua_pushthread(L);
|
||||
if (!lua_equal(L, -1, lua_upvalueindex(2)))
|
||||
luaL_error(L, "%s", "Do not have a lock on this mutex");
|
||||
lua_getfield(L, LUA_REGISTRYINDEX, "table.remove");
|
||||
lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED");
|
||||
lua_getfield(L, -1, "table");
|
||||
lua_getfield(L, -1, "remove");
|
||||
lua_pushvalue(L, lua_upvalueindex(1));
|
||||
lua_pushinteger(L, 1);
|
||||
lua_call(L, 2, 1);
|
||||
|
||||
Reference in New Issue
Block a user