summaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2007-04-05 17:31:29 +0000
committerBen Laurie <ben@openssl.org>2007-04-05 17:31:29 +0000
commit48bd505c0b715c3dfe8dfb1d256d1bcbff3c63fb (patch)
tree2135ac748eb7a4c4b7d0229a9260f2740d04b9cc /crypto/pkcs7
parentab2d91bd6b9085b1e406d6cac68c3f6cfdc4522f (diff)
If you're going to check for negative, use an signed integer! Coverity ID 122.
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r--crypto/pkcs7/pk7_doit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c
index 7eb053a656..451de84489 100644
--- a/crypto/pkcs7/pk7_doit.c
+++ b/crypto/pkcs7/pk7_doit.c
@@ -1024,7 +1024,8 @@ int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
if ((sk != NULL) && (sk_X509_ATTRIBUTE_num(sk) != 0))
{
unsigned char md_dat[EVP_MAX_MD_SIZE], *abuf = NULL;
- unsigned int md_len, alen;
+ unsigned int md_len;
+ int alen;
ASN1_OCTET_STRING *message_digest;
EVP_DigestFinal_ex(&mdc_tmp,md_dat,&md_len);