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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user