X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=ssl%2Fs3_msg.c;h=1cd3941a27257e757eac367f2587047e3fcac6bc;hp=7af2f99e05a12c34642420f6657296eca97ae2d9;hb=1722496fcaa8f2760dd38f7a77ba1256e51e8b7d;hpb=49e7fe12eac1e84af726e0110ee29073699ed46b diff --git a/ssl/s3_msg.c b/ssl/s3_msg.c index 7af2f99e05..1cd3941a27 100644 --- a/ssl/s3_msg.c +++ b/ssl/s3_msg.c @@ -105,12 +105,10 @@ int ssl3_dispatch_alert(SSL *s) s->s3->alert_dispatch = 1; } else { /* - * Alert sent to BIO. If it is important, flush it now. If the - * message does not get sent due to non-blocking IO, we will not - * worry too much. + * Alert sent to BIO - now flush. If the message does not get sent due + * to non-blocking IO, we will not worry too much. */ - 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,