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; } }