提交 35096e91 编写于 作者: R Rich Salz

GH1141: Different fix, preferred by Richard.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 b4b576d3
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册