mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fix the fd6 condition for SIOCGLIFFLAGS.
This commit is contained in:
parent
7cfee5944c
commit
4c5022b100
1 changed files with 1 additions and 1 deletions
|
|
@ -418,7 +418,7 @@ _intf_get_noalias(intf_t *intf, struct intf_entry *entry)
|
|||
* the ioctls gives ENXIO on Solaris. */
|
||||
if (ioctl(intf->fd, SIOCGLIFFLAGS, &lifr) >= 0)
|
||||
fd = intf->fd;
|
||||
else if (intf->fd6 == -1 || ioctl(intf->fd6, SIOCGLIFFLAGS, &lifr) >= 0)
|
||||
else if (intf->fd6 != -1 && ioctl(intf->fd6, SIOCGLIFFLAGS, &lifr) >= 0)
|
||||
fd = intf->fd6;
|
||||
else
|
||||
return (-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue