diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-11-30 13:56:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-11-30 13:56:04 +0000 |
commit | fed8dbf46dfdc82faed41e16766edd924df486fa (patch) | |
tree | 1ce89ef6170bfb56af7b7cf74fe1f910108a3b8f /crypto/ec/ec_pmeth.c | |
parent | c2f0203da0396ebdb6d8c4619e0b1eb9e4e7a456 (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/ec_pmeth.c')
-rw-r--r-- | crypto/ec/ec_pmeth.c | 2 |
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; |