From fccbab6f312d409afa06b939d9fac6502e4b70ad Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 29 May 2014 14:07:49 +0100 Subject: [PATCH] Set version number correctly. PR#3249 (cherry picked from commit 8909bf20269035d295743fca559207ef2eb84eb3) --- crypto/cms/cms_sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c index e3192b9c57..571e1ed961 100644 --- a/crypto/cms/cms_sd.c +++ b/crypto/cms/cms_sd.c @@ -158,8 +158,8 @@ static void cms_sd_set_version(CMS_SignedData *sd) if (sd->version < 3) sd->version = 3; } - else - sd->version = 1; + else if (si->version < 1) + si->version = 1; } if (sd->version < 1) -- 2.40.0