Skip to content

Commit 682b628

Browse files
committed
remove redundant, always true, checks
1 parent d960d02 commit 682b628

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/tls13.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14532,8 +14532,7 @@ int wolfSSL_UseKeyShare(WOLFSSL* ssl, word16 group)
1453214532
if (WOLFSSL_NAMED_GROUP_IS_PQC(group) ||
1453314533
WOLFSSL_NAMED_GROUP_IS_PQC_HYBRID(group)) {
1453414534

14535-
if (ssl->ctx != NULL && ssl->ctx->method != NULL &&
14536-
!IsAtLeastTLSv1_3(ssl->version)) {
14535+
if (!IsAtLeastTLSv1_3(ssl->version)) {
1453714536
return BAD_FUNC_ARG;
1453814537
}
1453914538

0 commit comments

Comments
 (0)