]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Get tls_session_t from SSL* not the session, probably Fixes #1898
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 23 May 2017 14:44:13 +0000 (10:44 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 23 May 2017 14:49:36 +0000 (10:49 -0400)
src/main/tls/cache.c

index 724e0125ba0242a415a5fa882fe3bed240cb41bd..52f054948ab6ed7e8ecff6ab5a5fd6a28419f6b7 100644 (file)
@@ -181,7 +181,7 @@ static int tls_cache_serialize(SSL *ssl, SSL_SESSION *sess)
        size_t                  key_len;
 
        request = SSL_get_ex_data(ssl, FR_TLS_EX_INDEX_REQUEST);
-       tls_session = talloc_get_type_abort(SSL_SESSION_get_ex_data(sess, FR_TLS_EX_INDEX_TLS_SESSION), tls_session_t);
+       tls_session = talloc_get_type_abort(SSL_get_ex_data(ssl, FR_TLS_EX_INDEX_TLS_SESSION), tls_session_t);
 
        /*
         *      This functions should only be called once during the lifetime