]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
No longer need to strcmp for "none"
authorMatthijs Mekking <matthijs@isc.org>
Tue, 4 May 2021 07:49:14 +0000 (09:49 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 5 May 2021 10:54:05 +0000 (12:54 +0200)
When we introduced "dnssec-policy insecure" we could have removed the
'strcmp' check for "none", because if it was set to "none", the 'kasp'
variable would have been set to NULL.

(cherry picked from commit 636ff1e15cb15db9252bd664a6f051761db824ca)

lib/dns/zone.c

index a2e51a1b20fa8923d6c264aa7cc634735e0eb3ca..9284ff9098b38d4784253bef68e75a68e67a0aa0 100644 (file)
@@ -19913,8 +19913,7 @@ zone_rekey(dns_zone_t *zone) {
                /*
                 * Only update DNSKEY TTL if we have a policy.
                 */
-               if (kasp != NULL && strcmp(dns_kasp_getname(kasp), "none") != 0)
-               {
+               if (kasp != NULL) {
                        ttl = dns_kasp_dnskeyttl(kasp);
                }