From fc8b76e87b352126c5ac7f3e1f544baf7bd8fe56 Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Tue, 4 May 2021 09:49:14 +0200 Subject: [PATCH] No longer need to strcmp for "none" 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. --- lib/dns/zone.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dns/zone.c b/lib/dns/zone.c index 5b8f14c3f2..9553ade3e8 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -20078,8 +20078,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); }