Initialize new callbacks and make sure hent is always initialized.

This commit is contained in:
Dr. Stephen Henson 2006-09-26 13:25:19 +00:00
parent 0709249f4c
commit 019bfef899
2 changed files with 5 additions and 0 deletions

View File

@ -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 = '/';

View File

@ -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);