Skip to content

Commit 2c9208b

Browse files
Merge pull request #6765 from kojo1/zd16462
Eliminate bad record mac alert
2 parents 7753e3d + 1f7ccc4 commit 2c9208b

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
@@ -20784,7 +20784,7 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
2078420784
return HandleDTLSDecryptFailed(ssl);
2078520785
}
2078620786
#endif /* WOLFSSL_DTLS */
20787-
#ifdef WOLFSSL_EXTRA_ALERTS
20787+
#if defined(WOLFSSL_EXTRA_ALERTS) && !defined(WOLFSSL_NO_ETM_ALERT)
2078820788
if (!ssl->options.dtls)
2078920789
SendAlert(ssl, alert_fatal, bad_record_mac);
2079020790
#endif
@@ -20879,7 +20879,7 @@ int ProcessReplyEx(WOLFSSL* ssl, int allowSocketErr)
2087920879
#endif
2088020880
) {
2088120881
WOLFSSL_MSG("Plaintext too long - Encrypt-Then-MAC");
20882-
#if defined(WOLFSSL_EXTRA_ALERTS)
20882+
#if defined(WOLFSSL_EXTRA_ALERTS) && !defined(WOLFSSL_NO_ETM_ALERT)
2088320883
SendAlert(ssl, alert_fatal, record_overflow);
2088420884
#endif
2088520885
WOLFSSL_ERROR_VERBOSE(BUFFER_ERROR);

0 commit comments

Comments
 (0)