You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bn...@apache.org on 2005/03/09 19:10:57 UTC

svn commit: r156665 - httpd/httpd/trunk/modules/ldap/util_ldap_cache.c

Author: bnicholes
Date: Wed Mar  9 10:10:47 2005
New Revision: 156665

URL: http://svn.apache.org/viewcvs?view=rev&rev=156665
Log:

Don't attempt to remove the cache_file if one was never specified.

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?view=diff&r1=156664&r2=156665
==============================================================================
--- httpd/httpd/trunk/modules/ldap/util_ldap_cache.c (original)
+++ httpd/httpd/trunk/modules/ldap/util_ldap_cache.c Wed Mar  9 10:10:47 2005
@@ -394,7 +394,9 @@
     if (st->cache_shm != NULL) {
         apr_status_t result = apr_shm_destroy(st->cache_shm);
         st->cache_shm = NULL;
-        apr_file_remove(st->cache_file, st->pool);
+        if (st->cache_file) {
+            apr_file_remove(st->cache_file, st->pool);
+        }
         return result;
     }
 #endif