forked from wolfSSL/wolfssl
Fix for bug in wolfSSL_EC_POINT_free not freeing the internal ECC point. Unit test fixup for test_wolfSSL_EVP_PKEY_new_mac_key with malloc and size 0. Cleanup the EC_POINT unit test to not set Gxy->inSet, since its already 0.
This commit is contained in:
@@ -22040,9 +22040,8 @@ void wolfSSL_EC_POINT_free(WOLFSSL_EC_POINT *p)
|
||||
WOLFSSL_ENTER("wolfSSL_EC_POINT_free");
|
||||
|
||||
if (p != NULL) {
|
||||
if (p->internal == NULL) {
|
||||
if (p->internal != NULL) {
|
||||
wc_ecc_del_point((ecc_point*)p->internal);
|
||||
XFREE(p->internal, NULL, DYNAMIC_TYPE_ECC);
|
||||
p->internal = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user