From 3b55096ab40be97b6cae55f8b33785e6532f0f5e Mon Sep 17 00:00:00 2001 From: david Date: Sat, 1 Sep 2012 03:19:00 +0000 Subject: [PATCH] Index nmap.list_intefaces return value from 1, not 0. --- nse_nmaplib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_nmaplib.cc b/nse_nmaplib.cc index 743434185..f31877313 100644 --- a/nse_nmaplib.cc +++ b/nse_nmaplib.cc @@ -863,7 +863,7 @@ static int l_list_interfaces (lua_State *L) nseU_setnfield(L, -1, "mtu", iflist[i].mtu); /* After setting the fields, add the interface table to the base table */ - lua_rawseti(L, -2, i); + lua_rawseti(L, -2, i + 1); } } return 1;