mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Loosen MAX_PSK_ID_LEN check in TLSX_PopulateExtensions() to only server side
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user