]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix ns_statscounter_recursclients counting bug
authorAram Sargsyan <aram@isc.org>
Tue, 18 Oct 2022 08:54:04 +0000 (08:54 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Tue, 18 Oct 2022 10:38:04 +0000 (10:38 +0000)
commitb6aeccf697729c4c721fc71da7063bb18a89c751
tree59104a2223d08b6835483da7feb69d03e705056f
parentb4158582fedd709235fceee27209b419d3398b87
Fix ns_statscounter_recursclients counting bug

The incrementing and decrementing of 'ns_statscounter_recursclients'
were not properly balanced: for example, it would be incremented for
a prefetch query but not decremented if the query failed.

This commit ensures that the recursion quota and the recursive clients
counter are always in sync with each other.

(cherry picked from commit 82991451b41793af201d070aba654c4ea89819cb)
lib/ns/client.c
lib/ns/query.c