summaryrefslogtreecommitdiffstats
path: root/crypto/ec
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-11-30 13:53:42 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-11-30 13:53:42 +0000
commit9117b9d17abadc372a2ab7b64f42566a6f09ba41 (patch)
treea47a01d45a90fdb5e3b40cb86c2c260bfc3e7175 /crypto/ec
parente274c8fb7273d69b6c152cdcf2e866c193ef1e6f (diff)
PR: 2118
Submitted by: Mounir IDRASSI <mounir.idrassi@idrix.net> Approved by: steve@openssl.org Check return value of ECDSA_sign() properly.
Diffstat (limited to 'crypto/ec')
-rw-r--r--crypto/ec/ec_pmeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/ec_pmeth.c b/crypto/ec/ec_pmeth.c
index 2a024bd48a..f433076ca1 100644
--- a/crypto/ec/ec_pmeth.c
+++ b/crypto/ec/ec_pmeth.c
@@ -143,7 +143,7 @@ static int pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen,
ret = ECDSA_sign(type, tbs, tbslen, sig, &sltmp, ec);
- if (ret < 0)
+ if (ret <= 0)
return ret;
*siglen = (size_t)sltmp;
return 1;