]> git.ipfire.org Git - thirdparty/bind9.git/commit
remove query_ctx_t detach_client property
authorColin Vidal <colin@isc.org>
Mon, 8 Sep 2025 08:12:53 +0000 (10:12 +0200)
committerColin Vidal <colin@isc.org>
Tue, 9 Sep 2025 08:02:32 +0000 (10:02 +0200)
commitd676ce8085e8dcbfefe9b0cacf485caa2d9cb18e
tree540936ae2f523f4d3bbcdb6aad3b0753eca64603
parent125e3832bc35bc788a19176ac01966832ff7cd66
remove query_ctx_t detach_client property

Since the removal of NS_QUERY_QCTX_DESTROYED hook, there is no need for
the `qctx->detach_client` object anymore, as this was designed to tell
the plugin whether the client object is about to be, or is already,
freed from memory.  This is not needed anymore, as NS_QUERY_RESET is
called _always_ when the client object is about to be freed from memory.

Remove `detach_client` and tidy up the code a bit by including the
freeing of the qctx object (when allocated) inside the qctx_destroy
function instead of requiring extra calls.
lib/ns/include/ns/query.h
lib/ns/query.c