cast for call to ecc_point copy function

This commit is contained in:
Jacob Barthelmeh
2017-12-29 09:47:28 -07:00
parent e9432005d4
commit 89973a7eaf

View File

@ -22870,7 +22870,7 @@ WOLFSSL_EC_KEY *wolfSSL_EC_KEY_new(void)
key = (ecc_key*)external->internal;
external->pub_key->internal = wc_ecc_new_point();
if (wc_ecc_copy_point((ecc_point*)&key->pubkey,
external->pub_key->internal) != MP_OKAY) {
(ecc_point*)external->pub_key->internal) != MP_OKAY) {
WOLFSSL_MSG("wc_ecc_copy_point failure");
wolfSSL_EC_KEY_free(external);
return NULL;