We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e3c357 commit 357c9a6Copy full SHA for 357c9a6
1 file changed
src/internal.c
@@ -20011,9 +20011,10 @@ static int HandleDTLSDecryptFailed(WOLFSSL* ssl)
20011
20012
static int DtlsShouldDrop(WOLFSSL* ssl, int retcode)
20013
{
20014
- if (ssl->options.handShakeDone && !IsEncryptionOn(ssl, 0)) {
+ if (ssl->options.handShakeDone && !IsEncryptionOn(ssl, 0) &&
20015
+ !ssl->options.dtlsHsRetain) {
20016
WOLFSSL_MSG("Silently dropping plaintext DTLS message "
- "on established connection.");
20017
+ "on established connection when we have nothing to send.");
20018
return 1;
20019
}
20020
0 commit comments