From 732435026b0141063084fb68c076bc1c9fd9bee8 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 27 Oct 2022 15:38:32 +0100 Subject: Resolve a TODO in ssl3_dispatch_alert Properly handle the case where there is pending write data and we want to send an alert. Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19550) --- ssl/d1_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ssl/d1_msg.c') diff --git a/ssl/d1_msg.c b/ssl/d1_msg.c index 279435ca03..eb84ed6470 100644 --- a/ssl/d1_msg.c +++ b/ssl/d1_msg.c @@ -48,7 +48,7 @@ int dtls1_dispatch_alert(SSL *ssl) if (s == NULL) return 0; - s->s3.alert_dispatch = 0; + s->s3.alert_dispatch = SSL_ALERT_DISPATCH_NONE; memset(buf, 0, sizeof(buf)); *ptr++ = s->s3.send_alert[0]; -- cgit v1.2.3