Fix trivial access of un-initialised memory.

Thanks to sven falpin for finding this.
This commit is contained in:
Simon Kelley
2013-04-05 16:57:41 +01:00
parent 83f28bef6c
commit 7e5664bdbc

View File

@@ -680,7 +680,7 @@ void receive_query(struct listener *listen, time_t now)
dst_addr_4.s_addr = 0; dst_addr_4.s_addr = 0;
netmask.s_addr = 0; netmask.s_addr = 0;
if (listen->iface && option_bool(OPT_NOWILD)) if (option_bool(OPT_NOWILD) && listen->iface)
{ {
auth_dns = listen->iface->dns_auth; auth_dns = listen->iface->dns_auth;