mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Index nmap.list_intefaces return value from 1, not 0.
This commit is contained in:
parent
f9e457ec7c
commit
3b55096ab4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue