projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
GH1141: Different fix, preferred by Richard.
[openssl.git]
/
crypto
/
cms
/
cms_env.c
diff --git
a/crypto/cms/cms_env.c
b/crypto/cms/cms_env.c
index 111b2aa5735fcaecf0c91f8349dd71703306118a..b143a91f243167b437077bd31bebeae0ccf86ccf 100644
(file)
--- a/
crypto/cms/cms_env.c
+++ b/
crypto/cms/cms_env.c
@@
-833,10
+833,10
@@
static void cms_env_set_version(CMS_EnvelopedData *env)
env->version = 2;
}
}
- if (env->version == 2)
- return;
if (env->originatorInfo || env->unprotectedAttrs)
env->version = 2;
+ if (env->version == 2)
+ return;
env->version = 0;
}