mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
[master] better rrl shutdown bug fix
This commit is contained in:
@@ -786,7 +786,7 @@ free_qname(dns_rrl_t *rrl, dns_rrl_entry_t *e) {
|
||||
qbuf = get_qname(rrl, e);
|
||||
if (qbuf != NULL) {
|
||||
qbuf->e = NULL;
|
||||
ISC_LIST_INITANDAPPEND(rrl->qname_free, qbuf, link);
|
||||
ISC_LIST_APPEND(rrl->qname_free, qbuf, link);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -912,6 +912,7 @@ make_log_buf(dns_rrl_t *rrl, dns_rrl_entry_t *e,
|
||||
qbuf = isc_mem_get(rrl->mctx, sizeof(*qbuf));
|
||||
if (qbuf != NULL) {
|
||||
memset(qbuf, 0, sizeof(*qbuf));
|
||||
ISC_LINK_INIT(qbuf, link);
|
||||
qbuf->index = rrl->num_qnames;
|
||||
rrl->qnames[rrl->num_qnames++] = qbuf;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user