Merge pull request #10493 from kareem-wolfssl/zd21852

NULL the correct key in TLSX_KeyShare_ProcessPqcHybridClient when using WOLFSSL_TLSX_PQC_MLKEM_STORE_OBJ.
This commit is contained in:
David Garske
2026-05-18 16:23:58 -07:00
committed by GitHub
+4
View File
@@ -10215,7 +10215,11 @@ static int TLSX_KeyShare_ProcessPqcHybridClient(WOLFSSL* ssl,
keyShareEntry->lastRet = WC_PENDING_E;
/* Prevent freeing of the ECC and ML-KEM private keys */
ecc_kse->key = NULL;
#ifndef WOLFSSL_TLSX_PQC_MLKEM_STORE_OBJ
pqc_kse->privKey = NULL;
#else
pqc_kse->key = NULL;
#endif
}
else
#endif