]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add assertion failure when adding to hashmap when iterating
authorOndřej Surý <ondrej@isc.org>
Sat, 16 Sep 2023 06:32:54 +0000 (08:32 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 19 Sep 2023 09:18:04 +0000 (11:18 +0200)
commit45fb84076dff6144e00e47baa3bbeeec79e7c466
tree9ef03e173427f729b75015abe43e1bec01902480
parent92a0d65a518c037f1ed4eb2dc6d0946900914983
Add assertion failure when adding to hashmap when iterating

When iterating the table, we can't add new nodes to the hashmap because
we can't assure that we are not adding the new node before the iterator.

This also applies to rehashing - which might be triggered by both
isc_hashmap_add() and isc_hashmap_delete(), but not
isc_hashmap_iter_delcurrent_next().
lib/isc/hashmap.c