From 328e7474d2368d8bf1bee18b18af8e70ff91c8a2 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 24 Jun 2020 13:43:50 +1000 Subject: [PATCH] Remove now redundant check for state != NULL (cherry picked from commit ee135d894620d9b2d51681b11f770c6133dcc236) --- lib/dns/update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/update.c b/lib/dns/update.c index 4f8db7a38ec..89935bedeba 100644 --- a/lib/dns/update.c +++ b/lib/dns/update.c @@ -2183,7 +2183,7 @@ failure: dst_key_free(&state->zone_keys[i]); } - if (state != &mystate && state != NULL) { + if (state != &mystate) { *statep = NULL; state->magic = 0; isc_mem_put(diff->mctx, state, sizeof(*state)); -- 2.47.3