]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix reference counting in get_attached_entry
authorOndřej Surý <ondrej@isc.org>
Tue, 6 Dec 2022 14:59:35 +0000 (15:59 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 7 Dec 2022 15:16:22 +0000 (16:16 +0100)
commitc2be97eeff8cc9cfd52d50a52b704a75568cb304
tree773a01ccf2877d727c0f36b2a969192efa272490
parent406de85309d88dbb0fb534fddf385b7c9eede3f7
Fix reference counting in get_attached_entry

When get_attached_entry() encounters entry that would be expired, it
needs to get reference to the entry before calling maybe_expire_entry(),
so the ADB entry doesn't get destroyed inside the its own lock.
lib/dns/adb.c