cast for when compiling with g++-7

This commit is contained in:
Jacob Barthelmeh
2017-07-31 16:58:53 -06:00
parent 08da8df455
commit 01099fd97e

View File

@ -5065,7 +5065,7 @@ static void TLSX_KeyShare_FreeAll(KeyShareEntry* list, void* heap)
}
else
#endif
wc_ecc_free(current->key);
wc_ecc_free((ecc_key*)(current->key));
}
XFREE(current->key, heap, DYNAMIC_TYPE_PRIVATE_KEY);
XFREE(current->ke, heap, DYNAMIC_TYPE_PUBLIC_KEY);