]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update the rdataset->trust field in ncache.c:rdataset_settrust
authorMark Andrews <marka@isc.org>
Thu, 14 Apr 2022 01:16:32 +0000 (11:16 +1000)
committerMark Andrews <marka@isc.org>
Mon, 18 Apr 2022 22:38:26 +0000 (08:38 +1000)
Both the trust recorded in the slab stucture and the trust on
rdataset need to be updated.

lib/dns/ncache.c

index 2316eb04a7c5e2db4637545d3248e4749243d007..7bea3d376cb5ee7b8c6c249ae8a47ffca8607f80 100644 (file)
@@ -504,6 +504,7 @@ rdataset_settrust(dns_rdataset_t *rdataset, dns_trust_t trust) {
        unsigned char *raw = rdataset->private3;
 
        raw[-1] = (unsigned char)trust;
+       rdataset->trust = trust;
 }
 
 static dns_rdatasetmethods_t rdataset_methods = {