]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Coverity 1531872: j is not used anywhere later, remove the assignment
authorTomas Mraz <tomas@openssl.org>
Wed, 7 Jun 2023 11:18:26 +0000 (13:18 +0200)
committerTodd Short <todd.short@me.com>
Sat, 10 Jun 2023 23:23:59 +0000 (19:23 -0400)
crypto/x509/by_dir.c

index cd1b53740b1da521a471ea397d6d75a9ffb0c75a..ced670cc8463df36cbe020f3053d45b7a98ef13c 100644 (file)
@@ -358,7 +358,6 @@ static int get_cert_by_subject_ex(X509_LOOKUP *xl, X509_LOOKUP_TYPE type,
             tmp = sk_X509_OBJECT_value(xl->store_ctx->objs, j);
             X509_STORE_unlock(xl->store_ctx);
         } else {
-            j = -1;
             tmp = NULL;
         }
         /*