projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
021521a
)
Avoid sending alerts after shutdown
author
Dmitry Belyavskiy
<beldmit@gmail.com>
Wed, 5 May 2021 12:29:28 +0000
(14:29 +0200)
committer
Dmitry Belyavskiy
<beldmit@gmail.com>
Thu, 6 May 2021 15:07:11 +0000
(17:07 +0200)
Fixes #11388
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15159)
ssl/s3_msg.c
patch
|
blob
|
history
diff --git
a/ssl/s3_msg.c
b/ssl/s3_msg.c
index 066623d5fb4500d27c89e6ea35779fa9ba184644..4b0906820eb4ce69e20846aa3aec40364c32a9ee 100644
(file)
--- a/
ssl/s3_msg.c
+++ b/
ssl/s3_msg.c
@@
-52,6
+52,8
@@
int ssl3_send_alert(SSL *s, int level, int desc)
* protocol_version alerts */
if (desc < 0)
return -1;
+ if (s->shutdown & SSL_SENT_SHUTDOWN && desc != SSL_AD_CLOSE_NOTIFY)
+ return -1;
/* If a fatal one, remove from cache */
if ((level == SSL3_AL_FATAL) && (s->session != NULL))
SSL_CTX_remove_session(s->session_ctx, s->session);