From 7e5664bdbc3c93e30285c1f797109dd3d72c2653 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Fri, 5 Apr 2013 16:57:41 +0100 Subject: [PATCH] Fix trivial access of un-initialised memory. Thanks to sven falpin for finding this. --- src/forward.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/forward.c b/src/forward.c index 9a1e15a..1ea25dd 100644 --- a/src/forward.c +++ b/src/forward.c @@ -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;