]> git.ipfire.org Git - thirdparty/bind9.git/commit
Address use after free between view, resolver and nta.
authorMark Andrews <marka@isc.org>
Fri, 7 Aug 2020 08:00:41 +0000 (18:00 +1000)
committerMark Andrews <marka@isc.org>
Tue, 11 Aug 2020 04:52:15 +0000 (14:52 +1000)
commita3c2ad2ee509ae7d03bccdc8bed467f67da498ef
tree3f9b8d263f9e391cc9974ca022ba316c9b33f977
parentf58d2312e81c94b38247030db30c4739242a6166
Address use after free between view, resolver and nta.

Hold a weak reference to the view so that it can't go away while
nta is performing its lookups.  Cancel nta timers once all external
references to the view have gone to prevent them triggering new work.

(cherry picked from commit 0b2555e8cfc187cb481080c06229a4eac416355d)
CHANGES
lib/dns/include/dns/nta.h
lib/dns/nta.c
lib/dns/view.c
lib/dns/win32/libdns.def.in