]> granicus.if.org Git - openssl/commitdiff
Submitted by: Jonathan Dixon <joth@chromium.org>
authorDr. Stephen Henson <steve@openssl.org>
Tue, 2 Nov 2010 15:58:05 +0000 (15:58 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 2 Nov 2010 15:58:05 +0000 (15:58 +0000)
Reviewed by: steve

If store is NULL set flags correctly.

crypto/x509/x509_vfy.c

index 87ebf62525cad5e2579d6708a47859a2945b7e45..bd6695d0c137a4773d191783b5ff7ad18cb70389 100644 (file)
@@ -2034,7 +2034,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)
                {