diff options
author | Simon Kelley <simon@thekelleys.org.uk> | 2013-01-08 21:22:24 +0000 |
---|---|---|
committer | Simon Kelley <simon@thekelleys.org.uk> | 2013-01-08 21:22:24 +0000 |
commit | 71c73ac17c7d0908621ef031d82f8e8bc44933d2 (patch) | |
tree | 9859460b63adbc0b573339a4a7d5f1deafbb4174 /src/bpf.c | |
parent | c6cb7407b3b7416c9b407006eab484c26664bf5e (diff) | |
download | dnsmasq-71c73ac17c7d0908621ef031d82f8e8bc44933d2.tar.gz |
Fix crash on startup on Solaris 11
Diffstat (limited to 'src/bpf.c')
-rw-r--r-- | src/bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |