mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
For the DBM SSL Session Cache, propogate down pools to use for allocations. In most cases, we can use the conn_rec::pool, but for ssl_callback_DelSessionCacheEntry, we still use the long lived configuration pool, but this change at least makes it easier to fix in the future.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@545610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1638,7 +1638,7 @@ int ssl_callback_NewSessionCacheEntry(SSL *ssl, SSL_SESSION *session)
|
||||
|
||||
timeout += modssl_session_get_time(session);
|
||||
|
||||
rc = ssl_scache_store(s, id, idlen, timeout, session);
|
||||
rc = ssl_scache_store(s, id, idlen, timeout, session, conn->pool);
|
||||
|
||||
ssl_session_log(s, "SET", id, idlen,
|
||||
rc == TRUE ? "OK" : "BAD",
|
||||
@@ -1716,7 +1716,8 @@ void ssl_callback_DelSessionCacheEntry(SSL_CTX *ctx,
|
||||
id = SSL_SESSION_get_session_id(session);
|
||||
idlen = SSL_SESSION_get_session_id_length(session);
|
||||
|
||||
ssl_scache_remove(s, id, idlen);
|
||||
/* TODO: Do we need a temp pool here, or are we always shutting down? */
|
||||
ssl_scache_remove(s, id, idlen, sc->mc->pPool);
|
||||
|
||||
ssl_session_log(s, "REM", id, idlen,
|
||||
"OK", "dead", 0);
|
||||
|
Reference in New Issue
Block a user