Ensure ->sentto is valid for DNSSEC forwards. Otherwise retries SEGV.

This commit is contained in:
Simon Kelley
2014-03-27 22:02:17 +00:00
parent fec216df32
commit 8a8bbad0cf

View File

@@ -853,6 +853,7 @@ void reply_query(int fd, int family, time_t now)
*new = *forward; /* copy everything, then overwrite */ *new = *forward; /* copy everything, then overwrite */
new->next = next; new->next = next;
new->blocking_query = NULL; new->blocking_query = NULL;
new->sentto = server;
new->rfd4 = NULL; new->rfd4 = NULL;
#ifdef HAVE_IPV6 #ifdef HAVE_IPV6
new->rfd6 = NULL; new->rfd6 = NULL;