From: Vladimír Čunát Date: Wed, 22 Nov 2017 14:03:51 +0000 (+0100) Subject: set ranks of RRSIGs to _OMIT X-Git-Tag: v2.0.0~6^2~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b11fcafe1a417a51eace139ee659f37de9aa85ed;p=thirdparty%2Fknot-resolver.git set ranks of RRSIGs to _OMIT Otherwise the validator may get confused, trying to "validate" them. --- diff --git a/lib/cache/knot_pkt.c b/lib/cache/knot_pkt.c index 18187fb58..a7368980a 100644 --- a/lib/cache/knot_pkt.c +++ b/lib/cache/knot_pkt.c @@ -81,7 +81,7 @@ int pkt_append(knot_pkt_t *pkt, const struct answer_rrset *rrset, uint8_t rank) /* allocate rank */ uint8_t *rr_rank = mm_alloc(&pkt->mm, sizeof(*rr_rank)); if (!rr_rank) return kr_error(ENOMEM); - *rr_rank = (i == 0) ? rank : (KR_RANK_INITIAL | KR_RANK_AUTH); + *rr_rank = (i == 0) ? rank : (KR_RANK_OMIT | KR_RANK_AUTH); /* rank for RRSIGs isn't really useful: ^^ */ if (i == 0) { pkt->rr[pkt->rrset_count] = *rrset->set.rr;