From: Rich Salz Date: Mon, 13 Jun 2016 13:51:12 +0000 (-0400) Subject: GH1141: Different fix, preferred by Richard. X-Git-Tag: OpenSSL_1_1_0-pre6~463 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=35096e912c4eba6c5ffd961d36fc92f1ddf34240;p=oweals%2Fopenssl.git GH1141: Different fix, preferred by Richard. Reviewed-by: Richard Levitte --- diff --git a/crypto/cms/cms_env.c b/crypto/cms/cms_env.c index 111b2aa573..b143a91f24 100644 --- a/crypto/cms/cms_env.c +++ b/crypto/cms/cms_env.c @@ -833,10 +833,10 @@ static void cms_env_set_version(CMS_EnvelopedData *env) env->version = 2; } } - if (env->version == 2) - return; if (env->originatorInfo || env->unprotectedAttrs) env->version = 2; + if (env->version == 2) + return; env->version = 0; }