GH1141: Different fix, preferred by Richard.
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
b4b576d3b7
commit
35096e912c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue