]> git.ipfire.org Git - thirdparty/bind9.git/commit
Hold a reference to the NTA table for the lifetime of each NTA
authorEvan Hunt <each@isc.org>
Mon, 4 May 2026 07:05:27 +0000 (00:05 -0700)
committerOndřej Surý <ondrej@isc.org>
Tue, 5 May 2026 20:27:39 +0000 (22:27 +0200)
commit26c895cc9281d5cc36447d4a2c5464ad31137f76
treebb5dc392542a99f38d41ba052bbb8cfe93fe1467
parent55213079c6b2c28b688d7c44c7a553d3da49ff8e
Hold a reference to the NTA table for the lifetime of each NTA

Each dns__nta_t now references its parent ntatable in nta_create() and
releases it in dns__nta_destroy().  This avoids a use-after-free in
fetch_done() and other callbacks that dereference nta->ntatable: the
ntatable could otherwise be released by view destruction while an
in-flight resolver fetch still holds a reference to the NTA.
lib/dns/nta.c