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) { ...@@ -348,8 +348,7 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp) {
REQUIRE(dctxp != NULL && DNS_DYNDBCTX_VALID(*dctxp)); REQUIRE(dctxp != NULL && DNS_DYNDBCTX_VALID(*dctxp));
dctx = *dctxp; dctx = *dctxp;
if (dctxp == NULL) *dctxp = NULL;
return;
dctx->magic = 0; dctx->magic = 0;
...@@ -363,6 +362,4 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp) { ...@@ -363,6 +362,4 @@ dns_dyndb_destroyctx(dns_dyndbctx_t **dctxp) {
dctx->lctx = NULL; dctx->lctx = NULL;
isc_mem_putanddetach(&dctx->mctx, dctx, sizeof(*dctx)); 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