httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r227012 - /httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
Date Tue, 02 Aug 2005 14:15:37 GMT
Author: jorton
Date: Tue Aug  2 07:15:35 2005
New Revision: 227012

URL: http://svn.apache.org/viewcvs?rev=227012&view=rev
Log:
* modules/ldap/util_ldap_cache.c (util_ldap_cache_init): Only remove
the shm segment by name if a name is configured.

Modified:
    httpd/httpd/trunk/modules/ldap/util_ldap_cache.c

Modified: httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/ldap/util_ldap_cache.c?rev=227012&r1=227011&r2=227012&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap_cache.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap_cache.c Tue Aug  2 07:15:35 2005
@@ -396,8 +396,10 @@
     apr_status_t result;
     apr_size_t size;
 
-    /* Remove any existing shm segment with this name. */
-    apr_shm_remove(st->cache_file, st->pool);
+    if (st->cache_file) {
+        /* Remove any existing shm segment with this name. */
+        apr_shm_remove(st->cache_file, st->pool);
+    }
 
     size = APR_ALIGN_DEFAULT(st->cache_bytes);
 



Mime
View raw message