aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/x509/by_dir.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2006-09-26 13:25:19 +0000
committerDr. Stephen Henson <steve@openssl.org>2006-09-26 13:25:19 +0000
commit019bfef89964105cdf9256b6a6bc0aa7790bd020 (patch)
treefb6b0222b662215efb6d39b20287dcb9d567d125 /crypto/x509/by_dir.c
parent0709249f4c5cf7cf5891353d9d4b12355f4e3d4c (diff)
downloadopenssl-019bfef89964105cdf9256b6a6bc0aa7790bd020.tar.gz
Initialize new callbacks and make sure hent is always initialized.
Diffstat (limited to 'crypto/x509/by_dir.c')
-rw-r--r--crypto/x509/by_dir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c
index 098e868199..b0a4afae83 100644
--- a/crypto/x509/by_dir.c
+++ b/crypto/x509/by_dir.c
@@ -352,7 +352,10 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name,
CRYPTO_r_unlock(CRYPTO_LOCK_X509_STORE);
}
else
+ {
k = 0;
+ hent = NULL;
+ }
for (;;)
{
char c = '/';