Fix wrong return code from explore_rrset() with some errors.

This commit is contained in:
Simon Kelley
2019-07-15 22:04:20 +01:00
parent 343b7b4ad0
commit 05299fdd5a

View File

@@ -374,7 +374,7 @@ static int explore_rrset(struct dns_header *header, size_t plen, int class, int
int gotkey = 0;
if (!(p = skip_questions(header, plen)))
return STAT_BOGUS;
return 0;
/* look for RRSIGs for this RRset and get pointers to each RR in the set. */
for (rrsetidx = 0, sigidx = 0, j = ntohs(header->ancount) + ntohs(header->nscount);
@@ -386,7 +386,7 @@ static int explore_rrset(struct dns_header *header, size_t plen, int class, int
pstart = p;
if (!(res = extract_name(header, plen, &p, name, 0, 10)))
return STAT_BOGUS; /* bad packet */
return 0; /* bad packet */
GETSHORT(stype, p);
GETSHORT(sclass, p);