]> git.ipfire.org Git - thirdparty/bind9.git/commit
Refactor the xfrin reference counting
authorOndřej Surý <ondrej@sury.org>
Mon, 9 Nov 2020 10:32:55 +0000 (11:32 +0100)
committerOndřej Surý <ondrej@sury.org>
Mon, 9 Nov 2020 13:50:48 +0000 (14:50 +0100)
commit934d6c6f92ff1761372c532ff50b899ed4264d1d
tree97b1fad6390f8c62c3a61262d76353448ee9cf39
parent1170a52f489816a707563571b24482edf31e51f1
Refactor the xfrin reference counting

Previously, the xfrin object relied on four different reference counters
(`refs`, `connects`, `sends`, `recvs`) and destroyed the xfrin object
only if all of them were zero.  This commit reduces the reference
counting only to the `references` (renamed from `refs`) counter.  We
keep the existing `connects`, `sends` and `recvs` as safe guards, but
they are not formally needed.
lib/dns/xfrin.c
lib/dns/zone.c