]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a lock/unlock bug in server.c:do_modzone()
authorAram Sargsyan <aram@isc.org>
Mon, 13 Apr 2026 16:58:56 +0000 (16:58 +0000)
committerAram Sargsyan <aram@isc.org>
Tue, 14 Apr 2026 08:57:12 +0000 (08:57 +0000)
commita227e4606fac0788bf5818b6d9daeae2a74d77ec
tree61e1b84a981b0f611d815b4a19f3604a7dacfc4c
parenta72a17c88281b369dcb4773918568ccaff298c75
Fix a lock/unlock bug in server.c:do_modzone()

The cleanup path always unlocks the 'view->newzone.lock' lock, but
there are 'goto cleanup;' operations even before the lock is locked,
which causes an assertion failure.

Don't use the cleanup path before the lock is locked.
bin/named/server.c