mirror of
https://github.com/nmap/nmap.git
synced 2026-10-21 19:32:18 +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:
parent
f117619044
commit
bb07552e94
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue