]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test: Don't attach/detach qctx->view
authorWitold Kręcicki <wpk@isc.org>
Thu, 16 May 2019 14:56:36 +0000 (16:56 +0200)
committerWitold Kręcicki <wpk@isc.org>
Thu, 16 May 2019 14:56:36 +0000 (16:56 +0200)
lib/ns/query.c

index a51bffe5fc8a98e95eb7952b6a2c2b3d93246405..02bb70b3908d7bff75244e6c94ce3bdb1c2fff0e 100644 (file)
@@ -4973,7 +4973,7 @@ qctx_init(ns_client_t *client, dns_fetchevent_t *event,
 
        /* Set this first so CCTRACE will work */
        qctx->client = client;
-       dns_view_attach(client->view, &qctx->view);
+       qctx->view = client->view;
 
        CCTRACE(ISC_LOG_DEBUG(3), "qctx_init");
 
@@ -5049,7 +5049,6 @@ static void
 qctx_destroy(query_ctx_t *qctx) {
        CALL_HOOK_NORETURN(NS_QUERY_QCTX_DESTROYED, qctx);
 
-       dns_view_detach(&qctx->view);
        if (qctx->detach_client) {
                ns_client_detach(&qctx->client);
        }