]> 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)
committerMark Andrews <marka@isc.org>
Thu, 25 Jun 2020 02:04:36 +0000 (12:04 +1000)
lib/dns/update.c

index 49f177002b5efe672c4413e917675dfe3af62a90..2de3b5bf466632a3daaef2a208bee61dc041cc47 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));