From 49a919f4018805135f2a289db8237b1b8513763f Mon Sep 17 00:00:00 2001 From: batrick Date: Sun, 22 Jun 2008 18:38:53 +0000 Subject: [PATCH] Fixed nmap library which was returning it's first argument instead of the library table. --- nse_nmaplib.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index c261a5ae6..018b5a291 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -135,6 +135,7 @@ int luaopen_nmap (lua_State *L) {NULL, NULL} }; + lua_settop(L, 0); // clear stack luaL_register(L, "nmap", nmaplib); lua_newtable(L);