diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-03-25 10:40:32 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-03-25 10:40:32 +0000 |
commit | 188abf7e2a0bb2fb803aefc186cc3ac538cbf72a (patch) | |
tree | ba225126fbf79d56270fe35a4f20d6f19a760baf /crypto/cms | |
parent | f021b7cca661ffb90de8d72890e9cb72d504927c (diff) |
Submitted by: Ivan Nestlerode <inestlerode@us.ibm.com>
Approved by: steve@openssl.org
Check return code properly in CMS_SignerInfo_verify_content().
Diffstat (limited to 'crypto/cms')
-rw-r--r-- | crypto/cms/cms_smime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_smime.c b/crypto/cms/cms_smime.c index cf62c68112..f35883aa22 100644 --- a/crypto/cms/cms_smime.c +++ b/crypto/cms/cms_smime.c @@ -425,7 +425,7 @@ int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, for (i = 0; i < sk_CMS_SignerInfo_num(sinfos); i++) { si = sk_CMS_SignerInfo_value(sinfos, i); - if (!CMS_SignerInfo_verify_content(si, cmsbio)) + if (CMS_SignerInfo_verify_content(si, cmsbio) <= 0) { CMSerr(CMS_F_CMS_VERIFY, CMS_R_CONTENT_VERIFY_ERROR); |