diff options
author | Todd Short <tshort@akamai.com> | 2018-05-18 14:54:01 -0400 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-05-29 17:03:14 +0100 |
commit | 47eaa32d2671c1b608200afb97cc2f0040053686 (patch) | |
tree | ca981830b39ccff58a690618c19b84337f63e141 /crypto/ec | |
parent | adf652436a42a5132e708f8003b7621647f0a404 (diff) |
Fix no-sm2 with clang
Return immediately upon discovery of bad message digest.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6298)
Diffstat (limited to 'crypto/ec')
-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 5be292379a..2fde4f7a5b 100644 --- a/crypto/ec/ec_pmeth.c +++ b/crypto/ec/ec_pmeth.c @@ -124,7 +124,7 @@ static int pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, if (ec_nid == NID_sm2) { #if defined(OPENSSL_NO_SM2) - ret = -1; + return -1; #else ret = SM2_sign(type, tbs, tbslen, sig, &sltmp, ec); #endif |