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.
This commit is contained in:
Matthijs Mekking
2021-05-05 12:39:52 +02:00
parent 366ed047dd
commit fc8b76e87b
+1 -2
View File
@@ -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);
}