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:14 +0100 |
commit | 48f5b3efce0f17c3f83728ecdeca9cf214562fb2 (patch) | |
tree | 1ec4b930a086e1a76be9dbc749ace2e07879e653 /crypto/cms | |
parent | f8dc000699b3a83e1af6c424bb929407463daf44 (diff) |
Set version number correctly.
PR#3249
(cherry picked from commit 8909bf20269035d295743fca559207ef2eb84eb3)
Diffstat (limited to 'crypto/cms')
-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 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) |