projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a crash in SSLfatal due to invalid enc_write_ctx
[openssl.git]
/
ssl
/
statem
/
statem.c
diff --git
a/ssl/statem/statem.c
b/ssl/statem/statem.c
index a5748534878153d70f030f186865aa8a3d99c6d9..1f221e7542c2e3bb8d91e4a465e21ea7b180c1d0 100644
(file)
--- a/
ssl/statem/statem.c
+++ b/
ssl/statem/statem.c
@@
-123,7
+123,7
@@
void ossl_statem_fatal(SSL *s, int al, int func, int reason, const char *file,
s->statem.in_init = 1;
s->statem.state = MSG_FLOW_ERROR;
ERR_put_error(ERR_LIB_SSL, func, reason, file, line);
- if (al != SSL_AD_NO_ALERT)
+ if (al != SSL_AD_NO_ALERT
&& !s->statem.invalid_enc_write_ctx
)
ssl3_send_alert(s, SSL3_AL_FATAL, al);
}