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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user