Merge pull request #4438 from ejohnstown/dtls-big

DTLS Related Fixes
This commit is contained in:
David Garske
2021-10-01 13:04:20 -07:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -19534,8 +19534,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 */