]> git.ipfire.org Git - thirdparty/bind9.git/commit
Release unused key file IO lock objects
authorOndřej Surý <ondrej@isc.org>
Wed, 7 Dec 2022 15:45:33 +0000 (16:45 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Dec 2022 07:30:30 +0000 (08:30 +0100)
commitfb1acd6736609360f79a498d44dffcceb8ca0f54
treef21e5d56ec704886fe1974d3d3954283912b4347
parent26cc205334d8c369d9de16eddf087527e50d45bb
Release unused key file IO lock objects

Due to off-by-one error in zonemgr_keymgmt_delete, unused key file IO
lock objects were never freed and they were kept until the server
shutdown.  Adjust the returned value by -1 to accomodate the fact that
the atomic_fetch_*() functions return the value before the operation and
not current value after the operation.
lib/dns/zone.c