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

This commit is contained in:
Simon Kelley
2015-04-28 21:26:35 +01:00
parent e66b4dff3c
commit 2ed162ac20

View File

@@ -1608,6 +1608,11 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
GETSHORT(qtype, p); GETSHORT(qtype, p);
GETSHORT(qclass, 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 */ ans = 0; /* have we answered this question */
if (qtype == T_TXT || qtype == T_ANY) if (qtype == T_TXT || qtype == T_ANY)