From cb3c29cf8e77223d34f52e9fdf2ffb05337afe33 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) Conflict: NA Reference: https://gitlab.isc.org/isc-projects/bind9/-/commit/cb3c29cf8e77223d34f52e9fdf2ffb05337afe33 --- 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 = { -- 2.23.0