]> git.ipfire.org Git - thirdparty/bind9.git/commit
don't call hooks when a query hasn't started
authorColin Vidal <colin@isc.org>
Wed, 10 Sep 2025 20:40:44 +0000 (22:40 +0200)
committerEvan Hunt <each@isc.org>
Wed, 10 Sep 2025 21:14:36 +0000 (14:14 -0700)
commitb6a292b03f765d1599bbdb2f138d0d35f771a030
tree48f7379e167425e081f26506e184a087784a9657
parent637e8d01d2433fbd7b9b56565e9ed59f33e4f759
don't call hooks when a query hasn't started

guard the call to the NS_QUERY_RESET hook so it's called only if
the view has been set. If the view is NULL, it means the client has
been reset _before_ the query even started, and no other hook could
have been called, so it doesn't make sense to call this one.

this also enables us to avoid a NULL-check on the qctx->view in the
CALL_HOOK macros.
lib/ns/query.c