summaryrefslogtreecommitdiff
path: root/src/bpf.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2013-01-08 21:22:24 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2013-01-08 21:22:24 +0000
commit71c73ac17c7d0908621ef031d82f8e8bc44933d2 (patch)
tree9859460b63adbc0b573339a4a7d5f1deafbb4174 /src/bpf.c
parentc6cb7407b3b7416c9b407006eab484c26664bf5e (diff)
downloaddnsmasq-71c73ac17c7d0908621ef031d82f8e8bc44933d2.tar.gz
Fix crash on startup on Solaris 11
Diffstat (limited to 'src/bpf.c')
-rw-r--r--src/bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bpf.c b/src/bpf.c
index 4ab872e..5702cf8 100644
--- a/src/bpf.c
+++ b/src/bpf.c
@@ -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)