mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-01-07 23:39:35 -05:00
- Fix edns subnet to sort rrset references when storing messages
in the cache. This fixes a race condition in the rrset locks.
This commit is contained in:
parent
5994fb3db5
commit
52aff65e35
2 changed files with 3 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
22 April 2024: Wouter
|
||||
- Add checklock feature verbose_locking to trace locks and unlocks.
|
||||
- Fix edns subnet to sort rrset references when storing messages
|
||||
in the cache. This fixes a race condition in the rrset locks.
|
||||
|
||||
15 April 2024: Wouter
|
||||
- Fix #1048: Update ax_pkg_swig.m4 and ax_pthread.m4.
|
||||
|
|
|
|||
|
|
@ -421,6 +421,7 @@ update_cache(struct module_qstate *qstate, int id)
|
|||
rep->ref[i].id = rep->rrsets[i]->id;
|
||||
}
|
||||
reply_info_set_ttls(rep, *qstate->env->now);
|
||||
reply_info_sortref(rep);
|
||||
rep->flags |= (BIT_RA | BIT_QR); /* fix flags to be sensible for */
|
||||
rep->flags &= ~(BIT_AA | BIT_CD);/* a reply based on the cache */
|
||||
if(edns->subnet_source_mask == 0 && edns->subnet_scope_mask == 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue