From 6387a857b76b256b4002b9a5d46e1fda992dc237 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 25 Feb 2008 21:39:13 +0000 Subject: [PATCH] * modules/ssl/ssl_scache_dbm.c (ssl_scache_dbm_remove): Use and clear the temporary pool from the context. (missed in r630974) Found by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@631006 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_scache_dbm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/ssl/ssl_scache_dbm.c b/modules/ssl/ssl_scache_dbm.c index a2a225578d..acd2487222 100644 --- a/modules/ssl/ssl_scache_dbm.c +++ b/modules/ssl/ssl_scache_dbm.c @@ -293,8 +293,10 @@ static void ssl_scache_dbm_remove(void *context, server_rec *s, UCHAR *id, int i /* and delete it from the DBM file */ ssl_mutex_on(s); - if ((rv = apr_dbm_open(&dbm, ctx->data_file, - APR_DBM_RWCREATE, SSL_DBM_FILE_MODE, p)) != APR_SUCCESS) { + apr_pool_clear(ctx->pool); + + if ((rv = apr_dbm_open(&dbm, ctx->data_file, APR_DBM_RWCREATE, + SSL_DBM_FILE_MODE, ctx->pool)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, rv, s, "Cannot open SSLSessionCache DBM file `%s' for writing " "(delete)", -- 2.40.0