From 40c8a04fe01ecbec32668246115ff593bd32b266 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Thu, 13 Feb 2025 15:26:47 -0800 Subject: [PATCH] fixup! Add .up pointer to slabheader --- lib/dns/qpcache.c | 5 +++-- lib/dns/qpzone.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/dns/qpcache.c b/lib/dns/qpcache.c index 54593ff91e..eaa6a6fed5 100644 --- a/lib/dns/qpcache.c +++ b/lib/dns/qpcache.c @@ -3825,11 +3825,12 @@ rdatasetiter_next(dns_rdatasetiter_t *it DNS__DB_FLARG) { if (header != NULL) { break; } + /* * Find the start of the header chain for the next type. */ - topheader = dns_slabheader_top(header); - topheader_next = topheader->next; + topheader = topheader->next; + header = topheader; } NODE_UNLOCK(nlock, &nlocktype); diff --git a/lib/dns/qpzone.c b/lib/dns/qpzone.c index 4bb17b6fb4..51f8452473 100644 --- a/lib/dns/qpzone.c +++ b/lib/dns/qpzone.c @@ -4145,11 +4145,12 @@ rdatasetiter_next(dns_rdatasetiter_t *iterator DNS__DB_FLARG) { if (header != NULL) { break; } + /* * Find the start of the header chain for the next type. */ - topheader = dns_slabheader_top(header); - topheader_next = topheader->next; + topheader = topheader->next; + header = topheader; } NODE_UNLOCK(nlock, &nlocktype);