Remove now redundant check for state != NULL

(cherry picked from commit ee135d8946)
This commit is contained in:
Mark Andrews 2020-06-24 13:43:50 +10:00 committed by Michał Kępień
parent a452798af4
commit 328e7474d2

View file

@ -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));