mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix crash on startup on Solaris 11
This commit is contained in:
@@ -15,6 +15,9 @@ version 2.66
|
|||||||
Steven Barth for extensive testing and development work on
|
Steven Barth for extensive testing and development work on
|
||||||
this idea.
|
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
|
version 2.65
|
||||||
Fix regression which broke forwarding of queries sent via
|
Fix regression which broke forwarding of queries sent via
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ int iface_enumerate(int family, void *parm, int (*callback)())
|
|||||||
{
|
{
|
||||||
int iface_index = if_nametoindex(addrs->ifa_name);
|
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;
|
continue;
|
||||||
|
|
||||||
if (family == AF_INET)
|
if (family == AF_INET)
|
||||||
|
|||||||
Reference in New Issue
Block a user