]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/dnsmasq/0086-Don-t-remove-RRSIG-RR-from-answers-to-ANY-queries-wh.patch
1fa5c7ac5b42cc2e0fb68d99384310e330401966
[ipfire-2.x.git] / src / patches / dnsmasq / 0086-Don-t-remove-RRSIG-RR-from-answers-to-ANY-queries-wh.patch
1 From 2ed162ac204f3609fe4d9f9a0430baeaa352d88f Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Tue, 28 Apr 2015 21:26:35 +0100
4 Subject: [PATCH 86/87] Don't remove RRSIG RR from answers to ANY queries when
5 the do bit is not set.
6
7 ---
8 src/rfc1035.c | 5 +++++
9 1 file changed, 5 insertions(+)
10
11 diff --git a/src/rfc1035.c b/src/rfc1035.c
12 index 32df31ad603c..5828055caa5d 100644
13 --- a/src/rfc1035.c
14 +++ b/src/rfc1035.c
15 @@ -1608,6 +1608,11 @@ size_t answer_request(struct dns_header *header, char *limit, size_t qlen,
16 GETSHORT(qtype, p);
17 GETSHORT(qclass, p);
18
19 + /* Don't filter RRSIGS from answers to ANY queries, even if do-bit
20 + not set. */
21 + if (qtype == T_ANY)
22 + *do_bit = 1;
23 +
24 ans = 0; /* have we answered this question */
25
26 if (qtype == T_TXT || qtype == T_ANY)
27 --
28 2.1.0
29