Submitted by: Jonathan Dixon <joth@chromium.org>
authorDr. Stephen Henson <steve@openssl.org>
Tue, 2 Nov 2010 15:57:00 +0000 (15:57 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 2 Nov 2010 15:57:00 +0000 (15:57 +0000)
Reviewed by: steve

If store is NULL set flags correctly.

crypto/x509/x509_vfy.c

index b2f9290d5a0c95af9f3850abf6536e234a3f8254..aeb6337688d480debdc6ac5053f256a19a7c0f04 100644 (file)
@@ -1375,7 +1375,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)
                {