mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
Fix #2416: listing interfaces on IPv6-only Linux.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
#Nmap Changelog ($Id$); -*-text-*-
|
#Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [GH#2416] Fix a bug that prevented Nmap from discovering interfaces on Linux
|
||||||
|
when no IPv4 addresses were configured. [Daniel Miller, nnposter]
|
||||||
|
|
||||||
o [NSE][GH#2463] NSE "exception handling" with nmap.new_try() will no longer
|
o [NSE][GH#2463] NSE "exception handling" with nmap.new_try() will no longer
|
||||||
result in a stack traceback in debug output nor a "ERROR: script execution
|
result in a stack traceback in debug output nor a "ERROR: script execution
|
||||||
failed" message in script output, since the intended behavior has always been
|
failed" message in script output, since the intended behavior has always been
|
||||||
|
|||||||
@@ -693,7 +693,7 @@ _intf_get_aliases(intf_t *intf, struct intf_entry *entry)
|
|||||||
struct addr *ap, *lap;
|
struct addr *ap, *lap;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
if (intf->ifc.ifc_len < (int)sizeof(*ifr)) {
|
if (intf->ifc.ifc_len < (int)sizeof(*ifr) && intf->ifc.ifc_len != 0) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user