Merge pull request #9866 from embhorn/f196

Fix in wolfSSL_CTX_GenerateEchConfig
This commit is contained in:
Daniel Pouzzner
2026-03-05 16:12:27 -06:00
committed by GitHub
+4
View File
@@ -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);