Don't remove RRSIG RR from answers to ANY queries when the do bit is not set.

This commit is contained in:
Simon Kelley committed 2015-04-28 21:26:35 +01:00
1 parent e66b4dff3c
commit 2ed162ac20
1 file changed
+5
+5
View File
@@ -1608,6 +1608,11 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
GETSHORT(qtype, p);
GETSHORT(qclass, p);
/* Don't filter RRSIGS from answers to ANY queries, even if do-bit
not set. */
if (qtype == T_ANY)
*do_bit = 1;
ans = 0; /* have we answered this question */
if (qtype == T_TXT || qtype == T_ANY)