]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_scache_dbm.c (ssl_scache_dbm_remove): Use and clear
authorJoe Orton <jorton@apache.org>
Mon, 25 Feb 2008 21:39:13 +0000 (21:39 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 25 Feb 2008 21:39:13 +0000 (21:39 +0000)
  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

index a2a225578dec5e1ecb1fdc1871c42349d30145ba..acd2487222320741d3de872fa89b2ff127036185 100644 (file)
@@ -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)",