diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-05-29 14:07:49 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-05-29 14:12:11 +0100 |
commit | 105e52bf231a081a110f021ea0f7b1d05d110bd6 (patch) | |
tree | 00e3e1e16acdb1a0b49e83cbe52f2b33d6fab8cb | |
parent | 492a5010a4464f1dd1196431f4999e9163ea9e8c (diff) |
Set version number correctly.
PR#3249
(cherry picked from commit 8909bf20269035d295743fca559207ef2eb84eb3)
-rw-r--r-- | crypto/cms/cms_sd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c index cdac3b870d..5012749c67 100644 --- a/crypto/cms/cms_sd.c +++ b/crypto/cms/cms_sd.c @@ -157,8 +157,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) |