fix error return value when unable to extract ECC public key

This commit is contained in:
Jacob Barthelmeh
2017-08-23 14:45:08 -06:00
parent 7c604bfc48
commit b10e0b789b

View File

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