diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-10-14 23:51:52 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-10-14 23:51:52 +0000 |
commit | 71d525c9f651eca8dba5a972d938a3c1ca87e01c (patch) | |
tree | 2bb08e2394997f51fc668a5b3c69fa95107ca22c | |
parent | 3ab56511120b7a67ed4e4dbac9d60e5d1520a453 (diff) | |
download | openssl-new-71d525c9f651eca8dba5a972d938a3c1ca87e01c.tar.gz |
Fix for typo in certificate directory lookup code.
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | crypto/x509/by_dir.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index cac64a6f40..448bd7e69c 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -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); |