]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
rearranged code
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 28 Apr 2014 09:24:03 +0000 (11:24 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 28 Apr 2014 09:24:18 +0000 (11:24 +0200)
libdane/dane.c

index f423e27327b110fcef7b356629bc7d2a384385d8..3c6d4feae6706700886c0d2fea298fa56b8c4683 100644 (file)
@@ -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;