mirror of
https://github.com/nmap/nmap.git
synced 2026-02-07 14:06:33 +00:00
Removed some old debug code no longer used/needed. Added a new stack dump
function that provides a clean output of the stack with positive and negative stack indices.
This commit is contained in:
@@ -557,9 +557,8 @@ int process_getScriptId(lua_State* L, ScriptResult *sr) {
|
||||
lua_getfield(L, 1, FILENAME);
|
||||
filename = lua_tostring(L, -1);
|
||||
if (filename == NULL) {
|
||||
error("%s: The script's 'filename' entry was changed to:",
|
||||
SCRIPT_ENGINE);
|
||||
l_dumpValue(L, -1);
|
||||
error("%s: The script's 'filename' entry was changed to: %s",
|
||||
SCRIPT_ENGINE, luaL_typename(L, -1));
|
||||
return SCRIPT_ENGINE_ERROR;
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
Reference in New Issue
Block a user