]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/dnsmasq/0086-Don-t-remove-RRSIG-RR-from-answers-to-ANY-queries-wh.patch
dnsmasq: Import patches from upstream
[ipfire-2.x.git] / src / patches / dnsmasq / 0086-Don-t-remove-RRSIG-RR-from-answers-to-ANY-queries-wh.patch
CommitLineData
5f206778
MT
1From 2ed162ac204f3609fe4d9f9a0430baeaa352d88f Mon Sep 17 00:00:00 2001
2From: Simon Kelley <simon@thekelleys.org.uk>
3Date: Tue, 28 Apr 2015 21:26:35 +0100
888c41de 4Subject: [PATCH 86/98] Don't remove RRSIG RR from answers to ANY queries when
5f206778
MT
5 the do bit is not set.
6
7---
8 src/rfc1035.c | 5 +++++
9 1 file changed, 5 insertions(+)
10
11diff --git a/src/rfc1035.c b/src/rfc1035.c
12index 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--
282.1.0
29