]> git.ipfire.org Git - thirdparty/bind9.git/commit
Destroy the hashmap iterator inside the rwlock
authorOndřej Surý <ondrej@isc.org>
Tue, 25 Feb 2025 11:13:56 +0000 (12:13 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 25 Feb 2025 12:36:37 +0000 (13:36 +0100)
commit1e4fb53c6142d0148be782aede47bebd8e00d5b2
treeca19acfbde9cba43442176e1c0647ec2500e1f2c
parent24db1b1a8a1e18e339446d748caa01dcbf8e33d8
Destroy the hashmap iterator inside the rwlock

Previously, the hashmap iterator for fetches-per-zone was destroy
outside the rwlock.  This could lead to an assertion failure due to a
timing race with the internal rehashing of the hashmap table as the
rehashing process requires no iterators to be running when rehashing the
hashmap table.  This has been fixed by moving the destruction of the
iterator inside the read locked section.
lib/dns/resolver.c