diff options
author | Matt Caswell <matt@openssl.org> | 2022-10-27 16:38:32 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-14 10:14:41 +0100 |
commit | 732435026b0141063084fb68c076bc1c9fd9bee8 (patch) | |
tree | 1e9c156533a7f9eafd0ebdb4098286f3acd044f8 /ssl/d1_msg.c | |
parent | Update Stream Receive Buffers design document with implementation details (diff) | |
download | openssl-732435026b0141063084fb68c076bc1c9fd9bee8.tar.xz openssl-732435026b0141063084fb68c076bc1c9fd9bee8.zip |
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.c | 2 |
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]; |