From 019bfef89964105cdf9256b6a6bc0aa7790bd020 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 26 Sep 2006 13:25:19 +0000 Subject: [PATCH] Initialize new callbacks and make sure hent is always initialized. --- crypto/x509/by_dir.c | 3 +++ crypto/x509/x509_lu.c | 2 ++ 2 files changed, 5 insertions(+) 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 = '/'; diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index ead1e0b811..e29c35c861 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -196,6 +196,8 @@ X509_STORE *X509_STORE_new(void) ret->get_crl = 0; ret->check_crl = 0; ret->cert_crl = 0; + ret->lookup_certs = 0; + ret->lookup_crls = 0; ret->cleanup = 0; CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE, ret, &ret->ex_data); -- 2.25.1