提交 019bfef8 编写于 作者: D Dr. Stephen Henson

Initialize new callbacks and make sure hent is always initialized.

上级 0709249f
...@@ -352,7 +352,10 @@ static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, ...@@ -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); CRYPTO_r_unlock(CRYPTO_LOCK_X509_STORE);
} }
else else
{
k = 0; k = 0;
hent = NULL;
}
for (;;) for (;;)
{ {
char c = '/'; char c = '/';
......
...@@ -196,6 +196,8 @@ X509_STORE *X509_STORE_new(void) ...@@ -196,6 +196,8 @@ X509_STORE *X509_STORE_new(void)
ret->get_crl = 0; ret->get_crl = 0;
ret->check_crl = 0; ret->check_crl = 0;
ret->cert_crl = 0; ret->cert_crl = 0;
ret->lookup_certs = 0;
ret->lookup_crls = 0;
ret->cleanup = 0; ret->cleanup = 0;
CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE, ret, &ret->ex_data); CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509_STORE, ret, &ret->ex_data);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册