Fix places where we got the header by calling first_*_header() function,
but then worked with top->header instead of the result.
static dns_slabheader_t *
first_existing_header(dns_slabtop_t *top) {
dns_slabheader_t *header = first_header(top);
- if (EXISTS(top->header)) {
+ if (EXISTS(header)) {
return header;
}
return NULL;
dns_slabheader_t *expireheader =
first_header(expiretop);
if (expireheader != NULL) {
- mark_ancient(expiretop->header);
+ mark_ancient(expireheader);
}
/*
* FIXME: In theory, we should mark the RRSIG