]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
_gnutls_check_key_purpose: eliminated dead code
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 26 Sep 2018 07:38:04 +0000 (09:38 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 26 Sep 2018 10:43:33 +0000 (12:43 +0200)
Resolves #573

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/x509/verify.c

index a59e6376421d6c15415b80f974712cc360b24043..58acf42b86803e855c13d8483fd92f6661ab64be 100644 (file)
@@ -992,8 +992,6 @@ _gnutls_verify_crt_status(const gnutls_x509_crt_t * certificate_list,
         */
        for (i = clist_size - 1; i > 0; i--) {
                output = 0;
-               if (i - 1 < 0)
-                       break;
 
                if (purpose != NULL) {
                        ret = _gnutls_check_key_purpose(certificate_list[i], purpose, 1);