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

If store is NULL set flags correctly.

crypto/x509/x509_vfy.c

index 7bac3c6f24bb3fb4822faa03f19d4719d7e69d38..fadf712e4b9a4ea9b24c1044c7545ed06b38901c 100644 (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
        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)
                {
 
        if (store)
                {