diff options
author | Todd Short <tshort@akamai.com> | 2016-05-26 19:49:36 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-06-08 16:22:41 +0200 |
commit | e2bb9b9bf355792d89e131518cc0fd141d46ca5c (patch) | |
tree | b9b7d1ae0b22f72854f80396a1d6557838185822 /ssl/ssl_sess.c | |
parent | Fix some typos in pod files (diff) | |
download | openssl-e2bb9b9bf355792d89e131518cc0fd141d46ca5c.tar.xz openssl-e2bb9b9bf355792d89e131518cc0fd141d46ca5c.zip |
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 '')
-rw-r--r-- | ssl/ssl_sess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_sess.c b/ssl/ssl_sess.c index f13e466d2c..9095363702 100644 --- a/ssl/ssl_sess.c +++ b/ssl/ssl_sess.c @@ -994,7 +994,7 @@ int ssl_clear_bad_session(SSL *s) if ((s->session != NULL) && !(s->shutdown & SSL_SENT_SHUTDOWN) && !(SSL_in_init(s) || SSL_in_before(s))) { - SSL_CTX_remove_session(s->ctx, s->session); + SSL_CTX_remove_session(s->session_ctx, s->session); return (1); } else return (0); |