Skip to content

Commit 357c9a6

Browse files
committed
Only drop plaintext msgs when we don't have stuff to rtx
1 parent 6e3c357 commit 357c9a6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/internal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20011,9 +20011,10 @@ static int HandleDTLSDecryptFailed(WOLFSSL* ssl)
2001120011

2001220012
static int DtlsShouldDrop(WOLFSSL* ssl, int retcode)
2001320013
{
20014-
if (ssl->options.handShakeDone && !IsEncryptionOn(ssl, 0)) {
20014+
if (ssl->options.handShakeDone && !IsEncryptionOn(ssl, 0) &&
20015+
!ssl->options.dtlsHsRetain) {
2001520016
WOLFSSL_MSG("Silently dropping plaintext DTLS message "
20016-
"on established connection.");
20017+
"on established connection when we have nothing to send.");
2001720018
return 1;
2001820019
}
2001920020

0 commit comments

Comments
 (0)