summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2014-03-27 22:02:17 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2014-03-27 22:02:17 +0000
commit8a8bbad0cf12f95fc7459a39a940242906c41c9d (patch)
tree37c61d1dbcc0218b175cf5a97a25fb53d14f9479
parentfec216df326b380fcf10e99c49251a45c3234ae4 (diff)
downloaddnsmasq-8a8bbad0cf12f95fc7459a39a940242906c41c9d.tar.gz
Ensure ->sentto is valid for DNSSEC forwards. Otherwise retries SEGV.
-rw-r--r--src/forward.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/forward.c b/src/forward.c
index 7a87cb3..83b55a4 100644
--- a/src/forward.c
+++ b/src/forward.c
@@ -853,6 +853,7 @@ void reply_query(int fd, int family, time_t now)
*new = *forward; /* copy everything, then overwrite */
new->next = next;
new->blocking_query = NULL;
+ new->sentto = server;
new->rfd4 = NULL;
#ifdef HAVE_IPV6
new->rfd6 = NULL;