mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-18 11:09:36 +00:00
Fix crash on startup on Solaris 11
This commit is contained in:
1 parent
c6cb7407b3
commit
71c73ac17c
2 files changed
+4
-1
No files matched your search
@@ -14,6 +14,9 @@ version 2.66
|
||||
dnsmasq configuration file or restart the daemon. Thanks to
|
||||
Steven Barth for extensive testing and development work on
|
||||
this idea.
|
||||
|
||||
Fix crash on startup on Solaris 11. Regression probably
|
||||
introduced in 2.61. Thanks to Geoff Johnstone for the patch.
|
||||
|
||||
|
||||
version 2.65
|
||||
|
||||
@@ -111,7 +111,7 @@ int iface_enumerate(int family, void *parm, int (*callback)())
|
||||
{
|
||||
int iface_index = if_nametoindex(addrs->ifa_name);
|
||||
|
||||
if (iface_index == 0)
|
||||
if (iface_index == 0 || !addrs->ifa_addr || !addrs->ifa_netmask || !addrs->ifa_broadaddr)
|
||||
continue;
|
||||
|
||||
if (family == AF_INET)
|
||||
|
||||
Reference in new issue
Block a user