]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove now redundant check for state != NULL
authorMark Andrews <marka@isc.org>
Wed, 24 Jun 2020 03:43:50 +0000 (13:43 +1000)
committerMichał Kępień <michal@isc.org>
Wed, 25 Nov 2020 12:21:58 +0000 (13:21 +0100)
(cherry picked from commit ee135d894620d9b2d51681b11f770c6133dcc236)

lib/dns/update.c

index 4f8db7a38ec50934bd2dde7197a2492800072a0c..89935bedebaf11c48d6ff47203d7ae4d5ed38cf5 100644 (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));