summaryrefslogtreecommitdiff
path: root/ssl/s3_msg.c
diff options
context:
space:
mode:
authorTodd Short <tshort@akamai.com>2016-05-26 13:49:36 -0400
committerMatt Caswell <matt@openssl.org>2016-06-08 15:22:41 +0100
commite2bb9b9bf355792d89e131518cc0fd141d46ca5c (patch)
treeb9b7d1ae0b22f72854f80396a1d6557838185822 /ssl/s3_msg.c
parent77a795e4b0ac541b305561811bab355f5bb316fd (diff)
downloadopenssl-new-e2bb9b9bf355792d89e131518cc0fd141d46ca5c.tar.gz
Always use session_ctx when removing a session
Sessions are stored on the session_ctx, which doesn't change after SSL_set_SSL_CTX(). Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/s3_msg.c')
-rw-r--r--ssl/s3_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_msg.c b/ssl/s3_msg.c
index 78ae0994d1..185f0e9890 100644
--- a/ssl/s3_msg.c
+++ b/ssl/s3_msg.c
@@ -72,7 +72,7 @@ int ssl3_send_alert(SSL *s, int level, int desc)
return -1;
/* If a fatal one, remove from cache */
if ((level == SSL3_AL_FATAL) && (s->session != NULL))
- SSL_CTX_remove_session(s->ctx, s->session);
+ SSL_CTX_remove_session(s->session_ctx, s->session);
s->s3->alert_dispatch = 1;
s->s3->send_alert[0] = level;