Commit 30f8d5e3 authored by Mark Andrews's avatar Mark Andrews
Browse files

remove deadcode; move NULL assignment arlier

parent 3ed714b9
......@@ -348,8 +348,7 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp) {
REQUIRE(dctxp != NULL && DNS_DYNDBCTX_VALID(*dctxp));
dctx = *dctxp;
if (dctxp == NULL)
return;
*dctxp = NULL;
dctx->magic = 0;
......@@ -363,6 +362,4 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp) {
dctx->lctx = NULL;
isc_mem_putanddetach(&dctx->mctx, dctx, sizeof(*dctx));
*dctxp = NULL;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment