2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-26 20:17:35 +00:00

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-04 09:49:14 +02:00
parent 366ed047dd
commit 636ff1e15c
2 changed files with 4 additions and 2 deletions

View File

@ -890,6 +890,9 @@ kasp_name_allowed(const cfg_listelt_t *element) {
if (strcmp("none", name) == 0) {
return (false);
}
if (strcmp("insecure", name) == 0) {
return (false);
}
if (strcmp("default", name) == 0) {
return (false);
}

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);
}