diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-28 11:24:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-04-28 11:24:18 +0200 |
commit | 2ff15ab2c1c799b080d19bece76bdc8b9b4ec075 (patch) | |
tree | 8c66025d65df7e64c4ef09c915e7174f36e0a620 /libdane | |
parent | 0aec57d4a0a7da07d2f09738e1a4e187e9f61c19 (diff) | |
download | gnutls-2ff15ab2c1c799b080d19bece76bdc8b9b4ec075.tar.gz |
rearranged code
Diffstat (limited to 'libdane')
-rw-r--r-- | libdane/dane.c | 9 |
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; |