Submitted by: Jonathan Dixon <joth@chromium.org>

Reviewed by: steve

If store is NULL set flags correctly.
This commit is contained in:
Dr. Stephen Henson 2010-11-02 15:58:58 +00:00
parent beee17c428
commit da7b0b2261

View file

@ -2061,7 +2061,7 @@ int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509,
if (store)
ret = X509_VERIFY_PARAM_inherit(ctx->param, store->param);
else
ctx->param->flags |= X509_VP_FLAG_DEFAULT|X509_VP_FLAG_ONCE;
ctx->param->inh_flags |= X509_VP_FLAG_DEFAULT|X509_VP_FLAG_ONCE;
if (store)
{