From b10e0b789b112e50b5439be740b3c1962804204d Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 23 Aug 2017 14:45:08 -0600 Subject: [PATCH] fix error return value when unable to extract ECC public key --- wolfcrypt/src/ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 9ed7a55f6..dc42a443c 100755 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4136,7 +4136,7 @@ int wc_ecc_verify_hash_ex(mp_int *r, mp_int *s, const byte* hash, err = wc_ecc_make_pub_ex(key, NULL, NULL); if (err != MP_OKAY) { WOLFSSL_MSG("Unable to extract public key"); - return BAD_FUNC_ARG; + return err; } }