ddbdb451d217e406752a1b2a33f8589c69b3a325
[openwrt/staging/dangole.git] /
1 From 05299fdd5a3b6ace43224c7d27d06a57b175639f Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Mon, 15 Jul 2019 22:04:20 +0100
4 Subject: [PATCH 56/57] Fix wrong return code from explore_rrset() with some
5 errors.
6
7 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
8 ---
9 src/dnssec.c | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12 --- a/src/dnssec.c
13 +++ b/src/dnssec.c
14 @@ -374,7 +374,7 @@ static int explore_rrset(struct dns_head
15 int gotkey = 0;
16
17 if (!(p = skip_questions(header, plen)))
18 - return STAT_BOGUS;
19 + return 0;
20
21 /* look for RRSIGs for this RRset and get pointers to each RR in the set. */
22 for (rrsetidx = 0, sigidx = 0, j = ntohs(header->ancount) + ntohs(header->nscount);
23 @@ -386,7 +386,7 @@ static int explore_rrset(struct dns_head
24 pstart = p;
25
26 if (!(res = extract_name(header, plen, &p, name, 0, 10)))
27 - return STAT_BOGUS; /* bad packet */
28 + return 0; /* bad packet */
29
30 GETSHORT(stype, p);
31 GETSHORT(sclass, p);