Fix dynamic type name

pull/3523/head
Sean Parkinson 2020-11-05 10:36:05 +10:00
parent 5ca8e8f87c
commit 38740a1caa
2 changed files with 3 additions and 3 deletions

View File

@ -20090,7 +20090,7 @@ int CreateDevPrivateKey(void** pkey, byte* data, word32 length, int hsType,
*pkey = (void*)rsaKey;
}
else {
XFREE(rsaKey, heap, DYNAMIC_TYPE_EC);
XFREE(rsaKey, heap, DYNAMIC_TYPE_RSA);
}
#endif
}
@ -20113,7 +20113,7 @@ int CreateDevPrivateKey(void** pkey, byte* data, word32 length, int hsType,
*pkey = (void*)ecKey;
}
else {
XFREE(ecKey, heap, DYNAMIC_TYPE_EC);
XFREE(ecKey, heap, DYNAMIC_TYPE_ECC);
}
#endif
}

View File

@ -7984,7 +7984,7 @@ int wolfSSL_check_private_key(const WOLFSSL* ssl)
wc_ecc_free(pkey);
}
if (pkey != NULL) {
XFREE(pkey, ctx->heap, type);
XFREE(pkey, ssl->heap, type);
}
}
else