1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 02:49:01 +00:00

Index nmap.list_intefaces return value from 1, not 0.

This commit is contained in:
david
2012-09-01 03:19:00 +00:00
parent f9e457ec7c
commit 3b55096ab4

View File

@@ -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;