issue-8998: Ensure that the alert is generated and reaches the remote
authoragnosticdev <agnosticdev@gmail.com>
Wed, 29 May 2019 15:27:26 +0000 (10:27 -0500)
committerMatt Caswell <matt@openssl.org>
Thu, 30 May 2019 10:37:42 +0000 (11:37 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9041)

(cherry picked from commit 03da376ff7504c63a1d00d57cf41bd7b7e93ff65)

ssl/d1_msg.c

index 5906e88ca68f69b04c62f764cc27a58bd4536266..aecd321b364099c2c16bbd301fde799dbde4efe0 100644 (file)
@@ -52,8 +52,7 @@ int dtls1_dispatch_alert(SSL *s)
         s->s3->alert_dispatch = 1;
         /* fprintf( stderr, "not done with alert\n" ); */
     } else {
-        if (s->s3->send_alert[0] == SSL3_AL_FATAL)
-            (void)BIO_flush(s->wbio);
+        (void)BIO_flush(s->wbio);
 
         if (s->msg_callback)
             s->msg_callback(1, s->version, SSL3_RT_ALERT, s->s3->send_alert,