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:33:32 +0100 |
commit | 46d889f33e9f1bb03afd84a92c4c9b47e1c1f880 (patch) | |
tree | 63333db8c60c411ebf9ad89c3bbf1537156db00c /crypto/cms | |
parent | 4da0ddc47ea0bed39327d59223f2b79364b313ef (diff) | |
download | openssl-46d889f33e9f1bb03afd84a92c4c9b47e1c1f880.tar.gz |
Set version number correctly.
PR#3249
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 e8b2e1f889..ac5103abf7 100644 --- a/crypto/cms/cms_sd.c +++ b/crypto/cms/cms_sd.c @@ -159,8 +159,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) |