- 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:
W.C.A. Wijngaards 2024-04-22 13:44:42 +02:00
parent 5994fb3db5
commit 52aff65e35
2 changed files with 3 additions and 0 deletions

View file

@ -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.

View file

@ -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)