]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Address CID 1362495: tbuf covered by an INSIST so never NULL
authorFrancis Dupont <fdupont@isc.org>
Sat, 4 Jun 2016 06:49:10 +0000 (08:49 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 4 Jun 2016 06:49:10 +0000 (08:49 +0200)
lib/dns/catz.c

index fbafe9d2750283ebccb33ba61215847c270cbe9c..7629b3c5db320030d7cffa20e61dfee56cb7be67 100644 (file)
@@ -1120,8 +1120,7 @@ dns_catz_generate_masterfilename(dns_catz_zone_t *zone, dns_catz_entry_t *entry,
        result = ISC_R_SUCCESS;
 
 cleanup:
-       if (tbuf != NULL)
-               isc_buffer_free(&tbuf);
+       isc_buffer_free(&tbuf);
        return (result);
 }