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:
parent
366ed047dd
commit
636ff1e15c
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user