mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 13:30:48 +02:00
NULL the correct key in TLSX_KeyShare_ProcessPqcHybridClient when using WOLFSSL_TLSX_PQC_MLKEM_STORE_OBJ.
Thanks to Haiyang Huang for the report.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user