aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/d1_msg.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-10-27 15:38:32 +0100
committerTomas Mraz <tomas@openssl.org>2022-11-14 10:14:41 +0100
commit732435026b0141063084fb68c076bc1c9fd9bee8 (patch)
tree1e9c156533a7f9eafd0ebdb4098286f3acd044f8 /ssl/d1_msg.c
parent6f3072212c2d56cae598bc1d180b2673b3df9be0 (diff)
downloadopenssl-732435026b0141063084fb68c076bc1c9fd9bee8.tar.gz
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 <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19550)
Diffstat (limited to 'ssl/d1_msg.c')
-rw-r--r--ssl/d1_msg.c2
1 files changed, 1 insertions, 1 deletions
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];