summaryrefslogtreecommitdiff
path: root/libdane
diff options
context:
space:
mode:
Diffstat (limited to 'libdane')
-rw-r--r--libdane/dane.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libdane/dane.c b/libdane/dane.c
index f423e27327..3c6d4feae6 100644
--- a/libdane/dane.c
+++ b/libdane/dane.c
@@ -700,15 +700,14 @@ dane_verify_crt_raw(dane_state_t s,
}
while (1);
- if ((vflags & DANE_VFLAG_FAIL_IF_NOT_CHECKED) && checked == 0)
+ if ((vflags & DANE_VFLAG_FAIL_IF_NOT_CHECKED) && checked == 0) {
ret =
gnutls_assert_val(DANE_E_REQUESTED_DATA_NOT_AVAILABLE);
- else if (checked == 0)
- {
+ } else if (checked == 0) {
*verify |= DANE_VERIFY_UNKNOWN_DANE_INFO;
- }
- else
+ } else {
ret = 0;
+ }
cleanup:
return ret;