Fix trivial access of un-initialised memory.

Thanks to sven falpin for finding this.
This commit is contained in:
Simon Kelley committed 2013-04-09 22:28:04 +01:00
1 parent 83f28bef6c
commit 7e5664bdbc
1 file changed
+1 -1
+1 -1
View File
@@ -680,7 +680,7 @@ void receive_query(struct listener *listen, time_t now)
dst_addr_4.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;