Fix for typo in certificate directory lookup code.
authorDr. Stephen Henson <steve@openssl.org>
Sat, 14 Oct 2000 23:51:52 +0000 (23:51 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 14 Oct 2000 23:51:52 +0000 (23:51 +0000)
CHANGES
crypto/x509/by_dir.c

diff --git a/CHANGES b/CHANGES
index aca771190c18a8137404531b1098e43ac96603bd..0d09b71ddb65c0147e4cd05cf6ccc8e548266966 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,9 @@
 
  Changes between 0.9.6 and 0.9.7  [xx XXX 2000]
 
+  *) Fix typo in get_cert_by_subject() in by_dir.c
+     [Jean-Marc Desperrier <jean-marc.desperrier@certplus.com>]
+
   *) Rework the system to generate shared libraries:
 
      - Make note of the expected extension for the shared libraries and
index cac64a6f40451dfd47d08f1bc88f1970abaca2df..448bd7e69cca5a17c0179b03fb13e518ea1ea270 100644 (file)
@@ -327,7 +327,7 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
                 * it out again */
                CRYPTO_r_lock(CRYPTO_LOCK_X509_STORE);
                j = sk_X509_OBJECT_find(xl->store_ctx->objs,&stmp);
-               if(j != -1) tmp=sk_X509_OBJECT_value(xl->store_ctx->objs,i);
+               if(j != -1) tmp=sk_X509_OBJECT_value(xl->store_ctx->objs,j);
                else tmp = NULL;
                CRYPTO_r_unlock(CRYPTO_LOCK_X509_STORE);