diff --git a/src/internal.c b/src/internal.c index a07730c60..1d1056977 100644 --- a/src/internal.c +++ b/src/internal.c @@ -8510,6 +8510,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx, } else if (ret == ASN_PARSE_E || ret == BUFFER_E) { WOLFSSL_MSG("Got Peer cert ASN PARSE or BUFFER ERROR"); + SendAlert(ssl, alert_fatal, bad_certificate); #ifdef OPENSSL_EXTRA ssl->peerVerifyRet = X509_V_ERR_CERT_REJECTED; #endif