mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-03 13:59:27 -04:00
Avoid an empty block under if condition
This commit doesn't change the logic flow from previous code, it only makes the code more readable and consistent. More details on thread: https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/291#note_12185
This commit is contained in:
parent
37f42d19a1
commit
90e724af45
1 changed files with 3 additions and 3 deletions
|
|
@ -1605,9 +1605,9 @@ check_dnskey(vctx_t *vctx) {
|
|||
RUNTIME_CHECK(result == ISC_R_SUCCESS);
|
||||
is_ksk = ((dnskey.flags & DNS_KEYFLAG_KSK) != 0);
|
||||
|
||||
if ((dnskey.flags & DNS_KEYOWNER_ZONE) == 0) {
|
||||
/* Non zone key, skip. */
|
||||
} else if ((dnskey.flags & DNS_KEYFLAG_REVOKE) != 0) {
|
||||
if ((dnskey.flags & DNS_KEYOWNER_ZONE) != 0 &&
|
||||
(dnskey.flags & DNS_KEYFLAG_REVOKE) != 0)
|
||||
{
|
||||
if ((dnskey.flags & DNS_KEYFLAG_KSK) != 0 &&
|
||||
!dns_dnssec_selfsigns(&rdata, vctx->origin,
|
||||
&vctx->keyset, &vctx->keysigs,
|
||||
|
|
|
|||
Loading…
Reference in a new issue