Commit 7e5664bd authored by Simon Kelley's avatar Simon Kelley

Fix trivial access of un-initialised memory.

Thanks to sven falpin for finding this.
parent 83f28bef
...@@ -680,7 +680,7 @@ void receive_query(struct listener *listen, time_t now) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment