mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 13:50:00 -04:00
Use result of first_*_header() calls instead of direct value
Fix places where we got the header by calling first_*_header() function, but then worked with top->header instead of the result.
This commit is contained in:
parent
fa12ba28ce
commit
136fddf538
1 changed files with 2 additions and 2 deletions
|
|
@ -474,7 +474,7 @@ first_header(dns_slabtop_t *top) {
|
|||
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;
|
||||
|
|
@ -2933,7 +2933,7 @@ add(qpcache_t *qpdb, qpcnode_t *qpnode, dns_slabheader_t *newheader,
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue