]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix reference counting in get_attached_entry (again)
authorOndřej Surý <ondrej@isc.org>
Fri, 16 Dec 2022 20:46:50 +0000 (21:46 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 16 Dec 2022 20:48:43 +0000 (21:48 +0100)
commit32ff134eeb62dfb11a11824bccafbedf6a97d809
treee5c74c1b3987b37b0ba87b081bcbe2f53c437150
parent096b0476281278999363811a9439637d4218ba0c
Fix reference counting in get_attached_entry (again)

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.

This creeped into the code base again during review, so I am adding
an extra comment to prevent this.
lib/dns/adb.c