Skip to content

Commit 6f888d2

Browse files
committed
Fix from review
1 parent 28579d0 commit 6f888d2

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/tls.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10236,11 +10236,7 @@ static int TLSX_KeyShare_ProcessPqcHybridClient(WOLFSSL* ssl,
1023610236
}
1023710237

1023810238
if (ret == 0) {
10239-
keyShareEntry->key = ecc_kse->key;
10240-
ecc_kse->key = NULL;
10241-
10242-
if ((ret == 0) &&
10243-
((ssl->arrays->preMasterSz + ssSzPqc) > ENCRYPT_LEN)) {
10239+
if ((ssl->arrays->preMasterSz + ssSzPqc) > ENCRYPT_LEN) {
1024410240
WOLFSSL_MSG("shared secret is too long.");
1024510241
ret = LENGTH_ERROR;
1024610242
}

0 commit comments

Comments
 (0)