From: agnosticdev Date: Wed, 29 May 2019 15:27:26 +0000 (-0500) Subject: issue-8998: Ensure that the alert is generated and reaches the remote X-Git-Tag: openssl-3.0.0-alpha1~2015 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03da376ff7504c63a1d00d57cf41bd7b7e93ff65;p=oweals%2Fopenssl.git issue-8998: Ensure that the alert is generated and reaches the remote Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9041) --- diff --git a/ssl/d1_msg.c b/ssl/d1_msg.c index 0891d948f5..0dc83614a6 100644 --- a/ssl/d1_msg.c +++ b/ssl/d1_msg.c @@ -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,