From b0de40d10aecf4636c8b6c746313a2de1185cf84 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Thu, 30 Sep 2021 14:27:21 -0700 Subject: [PATCH] Forgive a DTLS session trying to send too much at once. (ZD12921) --- src/internal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index c132429b7..aa1ddf349 100644 --- a/src/internal.c +++ b/src/internal.c @@ -19247,8 +19247,12 @@ int ReceiveData(WOLFSSL* ssl, byte* output, int sz, int peek) if (ssl->options.dtls) { /* In DTLS mode, we forgive some errors and allow the session * 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; + } } #endif /* WOLFSSL_DTLS */