mirror of
https://github.com/systemd/systemd
synced 2024-10-14 12:04:49 +00:00
resolved: remove one level of indentation in dns_transaction_validate_dnssec()
Invert an "if" check, so that we can use "continue" rather than another code block indentation.
This commit is contained in:
parent
35b011ed7c
commit
f3cf586d56
|
@ -2323,13 +2323,14 @@ int dns_transaction_validate_dnssec(DnsTransaction *t) {
|
|||
/* Exit the loop, we dropped something from the answer, start from the beginning */
|
||||
changed = true;
|
||||
break;
|
||||
}
|
||||
|
||||
} else if (dnskeys_finalized) {
|
||||
|
||||
/* If we haven't read all DNSKEYs yet
|
||||
* a negative result of the validation
|
||||
* is irrelevant, as there might be
|
||||
* more DNSKEYs coming. */
|
||||
/* If we haven't read all DNSKEYs yet a
|
||||
* negative result of the validation is
|
||||
* irrelevant, as there might be more DNSKEYs
|
||||
* coming. */
|
||||
if (!dnskeys_finalized)
|
||||
continue;
|
||||
|
||||
if (result == DNSSEC_NO_SIGNATURE) {
|
||||
r = dns_transaction_requires_rrsig(t, rr);
|
||||
|
@ -2343,7 +2344,6 @@ int dns_transaction_validate_dnssec(DnsTransaction *t) {
|
|||
return r;
|
||||
|
||||
t->scope->manager->n_dnssec_insecure++;
|
||||
|
||||
changed = true;
|
||||
break;
|
||||
}
|
||||
|
@ -2414,7 +2414,6 @@ int dns_transaction_validate_dnssec(DnsTransaction *t) {
|
|||
return r;
|
||||
|
||||
t->scope->manager->n_dnssec_insecure++;
|
||||
|
||||
changed = true;
|
||||
break;
|
||||
}
|
||||
|
@ -2451,7 +2450,6 @@ int dns_transaction_validate_dnssec(DnsTransaction *t) {
|
|||
changed = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (changed)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue