Skip to content

Commit 064ebaa

Browse files
authored
Merge pull request #10493 from kareem-wolfssl/zd21852
NULL the correct key in TLSX_KeyShare_ProcessPqcHybridClient when using WOLFSSL_TLSX_PQC_MLKEM_STORE_OBJ.
2 parents be67bf8 + 9467d82 commit 064ebaa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tls.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10215,7 +10215,11 @@ static int TLSX_KeyShare_ProcessPqcHybridClient(WOLFSSL* ssl,
1021510215
keyShareEntry->lastRet = WC_PENDING_E;
1021610216
/* Prevent freeing of the ECC and ML-KEM private keys */
1021710217
ecc_kse->key = NULL;
10218+
#ifndef WOLFSSL_TLSX_PQC_MLKEM_STORE_OBJ
1021810219
pqc_kse->privKey = NULL;
10220+
#else
10221+
pqc_kse->key = NULL;
10222+
#endif
1021910223
}
1022010224
else
1022110225
#endif

0 commit comments

Comments
 (0)