From: Mark Andrews Date: Thu, 14 Apr 2022 01:16:32 +0000 (+1000) Subject: Update the rdataset->trust field in ncache.c:rdataset_settrust X-Git-Tag: v9.19.1~71^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d043a41499f5cc52920841ca7332b7cce7460aad;p=thirdparty%2Fbind9.git Update the rdataset->trust field in ncache.c:rdataset_settrust Both the trust recorded in the slab stucture and the trust on rdataset need to be updated. --- diff --git a/lib/dns/ncache.c b/lib/dns/ncache.c index 2316eb04a7c..7bea3d376cb 100644 --- a/lib/dns/ncache.c +++ b/lib/dns/ncache.c @@ -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 = {