summaryrefslogtreecommitdiffstats
path: root/crypto/cms
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/cms')
-rw-r--r--crypto/cms/cms_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_env.c b/crypto/cms/cms_env.c
index 8c6d91f3c8..b6b6ca1696 100644
--- a/crypto/cms/cms_env.c
+++ b/crypto/cms/cms_env.c
@@ -973,7 +973,7 @@ static void cms_env_set_version(CMS_EnvelopedData *env)
env->version = 3;
return;
}
- else if (ri->type != CMS_RECIPINFO_TRANS)
+ else if (ri->type != CMS_RECIPINFO_TRANS || ri->d.ktri->version != 0)
{
env->version = 2;
}