From 40bfb70d6a4185b479dfad45e9dd51b702a8066b Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 14 Apr 2022 11:16:32 +1000 Subject: [PATCH] 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. (cherry picked from commit d043a41499f5cc52920841ca7332b7cce7460aad) --- lib/dns/ncache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dns/ncache.c b/lib/dns/ncache.c index 2316eb04a7..7bea3d376c 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 = {