Skip to content

Commit 1f7ccc4

Browse files
committed
Eliminate bad record mac alert
1 parent 61f48eb commit 1f7ccc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20621,7 +20621,7 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
2062120621
return HandleDTLSDecryptFailed(ssl);
2062220622
}
2062320623
#endif /* WOLFSSL_DTLS */
20624-
#ifdef WOLFSSL_EXTRA_ALERTS
20624+
#if defined(WOLFSSL_EXTRA_ALERTS) && !defined(WOLFSSL_NO_ETM_ALERT)
2062520625
if (!ssl->options.dtls)
2062620626
SendAlert(ssl, alert_fatal, bad_record_mac);
2062720627
#endif
@@ -20715,7 +20715,7 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
2071520715
#endif
2071620716
) {
2071720717
WOLFSSL_MSG("Plaintext too long - Encrypt-Then-MAC");
20718-
#if defined(WOLFSSL_EXTRA_ALERTS)
20718+
#if defined(WOLFSSL_EXTRA_ALERTS) && !defined(WOLFSSL_NO_ETM_ALERT)
2071920719
SendAlert(ssl, alert_fatal, record_overflow);
2072020720
#endif
2072120721
WOLFSSL_ERROR_VERBOSE(BUFFER_ERROR);

0 commit comments

Comments
 (0)