From 0295b5ae3bfbda8d80a392b4193affc26da5ec91 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Wed, 13 May 2020 16:14:47 +1000 Subject: [PATCH] If encryption setup, TLS 1.3 alerts encrypted --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index ea94788ca..36eaaeda9 100644 --- a/src/internal.c +++ b/src/internal.c @@ -17521,7 +17521,7 @@ int SendAlert(WOLFSSL* ssl, int severity, int type) /* only send encrypted alert if handshake actually complete, otherwise other side may not be able to handle it */ if (IsEncryptionOn(ssl, 1) && (IsAtLeastTLSv1_3(ssl->version) || - ssl->options.handShakeDone)) { + ssl->encrypt.setup)) { sendSz = BuildMessage(ssl, output, outputSz, input, ALERT_SIZE, alert, 0, 0, 0); }