Merge branch '4314-dns_ncache_current-fails-to-set-covered-correctly-bind-9.18' into 'bind-9.18'
[9.18] Resolve "dns_ncache_current fails to set covered correctly" See merge request isc-projects/bind9!8307
This commit is contained in:
6
CHANGES
6
CHANGES
@@ -1,3 +1,9 @@
|
||||
6250. [bug] The wrong covered value was being set by
|
||||
dns_ncache_current for RRSIG records in the returned
|
||||
rdataset structure. This resulted in TYPE0 being
|
||||
reported as the covered value of the RRSIG when dumping
|
||||
the cache contents. [GL #4314]
|
||||
|
||||
6244. [bug] Adjust log levels on malformed messages to NOTICE when
|
||||
transferring in a zone. [GL #4290]
|
||||
|
||||
|
||||
@@ -377,6 +377,14 @@ if [ -x "${DELV}" ] ; then
|
||||
status=$((status+ret))
|
||||
fi
|
||||
|
||||
echo_i "checking RRSIG covered type in negative cache entry ($n)"
|
||||
ret=0
|
||||
rndc_dumpdb ns4
|
||||
grep -F '; example. RRSIG NSEC ...' ns4/named_dump.db.test$n > /dev/null || ret=1
|
||||
n=$((n+1))
|
||||
test "$ret" -eq 0 || echo_i "failed"
|
||||
status=$((status+ret))
|
||||
|
||||
echo_i "checking negative validation NXDOMAIN NSEC3 ($n)"
|
||||
ret=0
|
||||
dig_with_opts +noauth q.nsec3.example. \
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user