mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 17:20:48 +02:00
Fix in wolfSSL_CTX_GenerateEchConfig
This commit is contained in:
@@ -137,6 +137,10 @@ int wolfSSL_CTX_GenerateEchConfig(WOLFSSL_CTX* ctx, const char* publicName,
|
||||
|
||||
if (ret != 0) {
|
||||
if (newConfig) {
|
||||
if (newConfig->receiverPrivkey != NULL) {
|
||||
wc_HpkeFreeKey(hpke, newConfig->kemId,
|
||||
newConfig->receiverPrivkey, ctx->heap);
|
||||
}
|
||||
XFREE(newConfig->cipherSuites, ctx->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
XFREE(newConfig->publicName, ctx->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
XFREE(newConfig, ctx->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
|
||||
Reference in New Issue
Block a user