httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r631006 - /httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c
Date Mon, 25 Feb 2008 21:39:14 GMT
Author: jorton
Date: Mon Feb 25 13:39:13 2008
New Revision: 631006

URL: http://svn.apache.org/viewvc?rev=631006&view=rev
Log:
* 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

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c?rev=631006&r1=631005&r2=631006&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c Mon Feb 25 13:39:13 2008
@@ -293,8 +293,10 @@
 
     /* 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)",



Mime
View raw message