From: Mark Andrews Date: Wed, 13 Sep 2023 00:59:39 +0000 (+1000) Subject: Correctly set the value of covered in dns_ncache_current X-Git-Tag: v9.18.20~47^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=933d03fc83d300c0e8713d2faa0ab9dab61f6400;p=thirdparty%2Fbind9.git Correctly set the value of covered in dns_ncache_current Fix the type and rdclass being passed to dns_rdata_tostruct so that rrsig.covered is correctly set. (cherry picked from commit 779980710c2ad6696fa8687ae19584ee65372f4e) --- diff --git a/lib/dns/ncache.c b/lib/dns/ncache.c index 9247ac1565e..941574de560 100644 --- a/lib/dns/ncache.c +++ b/lib/dns/ncache.c @@ -754,7 +754,7 @@ dns_ncache_current(dns_rdataset_t *ncacherdataset, dns_name_t *found, raw += 2; sigregion.base = raw; dns_rdata_reset(&rdata); - dns_rdata_fromregion(&rdata, rdataset->rdclass, rdataset->type, + dns_rdata_fromregion(&rdata, ncacherdataset->rdclass, type, &sigregion); (void)dns_rdata_tostruct(&rdata, &rrsig, NULL); rdataset->covers = rrsig.covered;