]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: usr: Fix race condition when canceling ADB find
authorOndřej Surý <ondrej@isc.org>
Wed, 13 Nov 2024 07:49:05 +0000 (07:49 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 13 Nov 2024 07:49:05 +0000 (07:49 +0000)
commit75f1587aed0663fc65c8b510bf64be54167dc5f7
tree44941e5b2444718c37df4b145bfa1f8d2b26f809
parent39d32e525f0f766230260023e28d208399d0aae7
parent128e50e1ff888ff760f0753613edfe9bf360a857
fix: usr: Fix race condition when canceling ADB find

When canceling the ADB find, the lock on the find gets released for
a brief period of time to be locked again inside adbname lock.  During
the brief period that the ADB find is unlocked, it can get canceled by
other means removing it from the adbname list which in turn causes
assertion failure due to a double removal from the adbname list.
This has been fixed.

Closes #5024

Merge branch '5024-fix-crash-in-dns_adb_cancelfind' into 'main'

See merge request isc-projects/bind9!9722