mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 11:44:38 +02:00
Forgive a DTLS session trying to send too much at once. (ZD12921)
This commit is contained in:
@@ -19247,9 +19247,13 @@ 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 */
|
||||||
|
|
||||||
if (ssl->error != 0 && ssl->error != WANT_WRITE
|
if (ssl->error != 0 && ssl->error != WANT_WRITE
|
||||||
|
Reference in New Issue
Block a user