summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authoragnosticdev <agnosticdev@gmail.com>2019-05-29 10:27:26 -0500
committerMatt Caswell <matt@openssl.org>2019-05-30 11:37:42 +0100
commite9ad1e00e1f02502eea5f99cfe8463bc93fac3cf (patch)
tree2f557c1b453830eb281afb868c32e347a77bb401 /ssl
parent15d7e7997e219fc5fef3f6003cc6bd7b2e7379d4 (diff)
issue-8998: Ensure that the alert is generated and reaches the remote
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)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/d1_msg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/d1_msg.c b/ssl/d1_msg.c
index 5906e88ca6..aecd321b36 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,