]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix error path bugs in the "recursing-clients" list management
authorAram Sargsyan <aram@isc.org>
Wed, 2 Oct 2024 16:22:38 +0000 (16:22 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 26 Nov 2024 12:40:04 +0000 (12:40 +0000)
commitb91b7093f26b9bc596891c50a3fcb7a274668649
treee3ba1681dfb5beffdd183f6ccef757b6f182c64b
parent2fa9d5b801d04fd50d4a144539a25e293d90fe4e
Fix error path bugs in the "recursing-clients" list management

In two places, after linking the client to the manager's
"recursing-clients" list using the check_recursionquota()
function, the query.c module fails to unlink it on error
paths. Fix the bugs by unlinking the client from the list.

Also make sure that unlinking happens before detaching the
client's handle, as it is the logically correct order, e.g.
in case if it's the last handle and ns__client_reset_cb()
can be called because of the detachment.

(cherry picked from commit 36c4808903088fd547a09ddd79c35169387d4581)
lib/ns/query.c