mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Forgive a DTLS session trying to send too much at once. (ZD12921)
This commit is contained in:
@ -19247,8 +19247,12 @@ int ReceiveData(WOLFSSL* ssl, byte* output, int sz, int peek)
|
|||||||
if (ssl->options.dtls) {
|
if (ssl->options.dtls) {
|
||||||
/* In DTLS mode, we forgive some errors and allow the session
|
/* In DTLS mode, we forgive some errors and allow the session
|
||||||
* to continue despite them. */
|
* to continue despite them. */
|
||||||
if (ssl->error == VERIFY_MAC_ERROR || ssl->error == DECRYPT_ERROR)
|
if (ssl->error == VERIFY_MAC_ERROR ||
|
||||||
|
ssl->error == DECRYPT_ERROR ||
|
||||||
|
ssl->error == DTLS_SIZE_ERROR) {
|
||||||
|
|
||||||
ssl->error = 0;
|
ssl->error = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif /* WOLFSSL_DTLS */
|
#endif /* WOLFSSL_DTLS */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user