]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
remove redundant rctx != NULL check
authorMark Andrews <marka@isc.org>
Thu, 2 Jul 2020 06:21:20 +0000 (16:21 +1000)
committerMark Andrews <marka@isc.org>
Mon, 6 Jul 2020 00:30:25 +0000 (10:30 +1000)
(cherry picked from commit 2fa2dbd5fb9a3e7bc3cf29eff6b198581942d7b8)

lib/dns/client.c

index b78a35306a9dc1066fa2d43a96f36938e7c14561..cb74157f1695fee64831bf4061a8051ce51ba234 100644 (file)
@@ -1416,10 +1416,8 @@ cleanup:
        if (sigrdataset != NULL) {
                putrdataset(client->mctx, &sigrdataset);
        }
-       if (rctx != NULL) {
-               isc_mutex_destroy(&rctx->lock);
-               isc_mem_put(mctx, rctx, sizeof(*rctx));
-       }
+       isc_mutex_destroy(&rctx->lock);
+       isc_mem_put(mctx, rctx, sizeof(*rctx));
        isc_event_free(ISC_EVENT_PTR(&event));
        isc_task_detach(&tclone);
        dns_view_detach(&view);