Fix crash on startup on Solaris 11

This commit is contained in:
Simon Kelley
2013-01-08 21:22:24 +00:00
parent c6cb7407b3
commit 71c73ac17c
2 changed files with 4 additions and 1 deletions

View File

@@ -15,6 +15,9 @@ version 2.66
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
Fix regression which broke forwarding of queries sent via

View File

@@ -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)