mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
internal.c: don't check TLS13 plaintext limit twice
Plaintext size is checked before decryption in TLS 1.3
This commit is contained in:
@@ -17410,7 +17410,9 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
if (ssl->buffers.inputBuffer.length -
|
/* TLS13 plaintext limit is checked earlier before decryption */
|
||||||
|
if (!IsAtLeastTLSv1_3(ssl->version)
|
||||||
|
&& ssl->buffers.inputBuffer.length -
|
||||||
ssl->keys.padSz -
|
ssl->keys.padSz -
|
||||||
ssl->buffers.inputBuffer.idx > MAX_PLAINTEXT_SZ
|
ssl->buffers.inputBuffer.idx > MAX_PLAINTEXT_SZ
|
||||||
#ifdef WOLFSSL_ASYNC_CRYPT
|
#ifdef WOLFSSL_ASYNC_CRYPT
|
||||||
|
Reference in New Issue
Block a user