]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: Don't skip the counting if fcount_incr() is called with force==true (v2)
authorOndřej Surý <ondrej@isc.org>
Tue, 13 Aug 2024 13:53:13 +0000 (13:53 +0000)
committerOndřej Surý <ondrej@isc.org>
Tue, 13 Aug 2024 13:53:13 +0000 (13:53 +0000)
The fcount_incr() was not increasing counter->count when force was set
to true, but fcount_decr() would try to decrease the counter leading to
underflow and assertion failure.  Swap the order of the arguments in the
condition, so the !force is evaluated after incrementing the .count.

Closes #4846

Merge branch '4786-forced-fcount_incr-should-still-increment-count-and-allowed-fix' into 'main'

Closes #4846

See merge request isc-projects/bind9!9298


Trivial merge