]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only lock view->newzone.lock if not already locked
authorMatthijs Mekking <matthijs@isc.org>
Fri, 13 Mar 2026 10:52:47 +0000 (11:52 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 17 Mar 2026 09:51:18 +0000 (09:51 +0000)
commit4a6509582320916b4d3e538dbdbabfba9f98acbb
tree2c02c74698a8dac44f2772bfd7b8c1c66004c17a
parent60f63ce097c515a45400464cde774844bdc21601
Only lock view->newzone.lock if not already locked

Some code paths try to lock an already locked view->newzone.lock.

For example, do_modzone() aqcuires the lock and then calls
delete_zoneconf(), that wants to acquire the same lock.

Add a parameter to delete_zoneconf() that informs the function if the
lock has already been acquired.

(cherry picked from commit 71587b0816a9458895aaa14a85539acd91afda38)
bin/named/server.c