From: Dr. Stephen Henson Date: Thu, 29 May 2014 13:07:49 +0000 (+0100) Subject: Set version number correctly. X-Git-Tag: OpenSSL_1_0_1h~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48f5b3efce0f17c3f83728ecdeca9cf214562fb2;p=oweals%2Fopenssl.git Set version number correctly. PR#3249 (cherry picked from commit 8909bf20269035d295743fca559207ef2eb84eb3) --- diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c index 77fbd13596..51dd33a1c3 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)