Skip to content

Commit

Permalink
Merge pull request #8302 from cconlon/sessTickLenCheck
Browse files Browse the repository at this point in the history
Loosen MAX_PSK_ID_LEN check in TLSX_PopulateExtensions() to only server side
  • Loading branch information
SparkiDev authored Dec 19, 2024
2 parents 8fa238e + 1101841 commit 00f83fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -13781,7 +13781,7 @@ int TLSX_PopulateExtensions(WOLFSSL* ssl, byte isServer)
word64 now, milli;
#endif

if (sess->ticketLen > MAX_PSK_ID_LEN) {
if (isServer && (sess->ticketLen > MAX_PSK_ID_LEN)) {
WOLFSSL_MSG("Session ticket length for PSK ext is too large");
return BUFFER_ERROR;
}
Expand Down

0 comments on commit 00f83fa

Please sign in to comment.