diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-09-30 23:49:11 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-09-30 23:49:11 +0000 |
commit | d71061122cd91a493d69c313c68063fe8d02e3e9 (patch) | |
tree | d0c71f6a320af828c360fe2080944c463ca30710 /crypto/cms/cms_sd.c | |
parent | fb552ac616375469a67ff4b72db8559a68124939 (diff) | |
download | openssl-d71061122cd91a493d69c313c68063fe8d02e3e9.tar.gz |
PR: 2058
Submitted by: Julia Lawall <julia@diku.dk>
Approved by: steve@openssl.org
Correct EVP_DigestVerifyFinal error handling.
Diffstat (limited to 'crypto/cms/cms_sd.c')
-rw-r--r-- | crypto/cms/cms_sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_sd.c b/crypto/cms/cms_sd.c index 83711d8af4..77fbd13596 100644 --- a/crypto/cms/cms_sd.c +++ b/crypto/cms/cms_sd.c @@ -800,7 +800,7 @@ int CMS_SignerInfo_verify(CMS_SignerInfo *si) } r = EVP_DigestVerifyFinal(&mctx, si->signature->data, si->signature->length); - if (!r) + if (r <= 0) CMSerr(CMS_F_CMS_SIGNERINFO_VERIFY, CMS_R_VERIFICATION_FAILURE); err: EVP_MD_CTX_cleanup(&mctx); |