commit | 2ed162ac204f3609fe4d9f9a0430baeaa352d88f | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Tue Apr 28 21:26:35 2015 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Tue Apr 28 21:26:35 2015 +0100 |
tree | a14be2430d9e1d83a39daf3520cd6eea0aeb9c1a | |
parent | e66b4dff3c562c7836d5be4c26972d665ad783f1 [diff] |
Don't remove RRSIG RR from answers to ANY queries when the do bit is not set.
diff --git a/src/rfc1035.c b/src/rfc1035.c index 32df31a..5828055 100644 --- a/src/rfc1035.c +++ b/src/rfc1035.c
@@ -1608,6 +1608,11 @@ 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)