httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject svn commit: r156665 - httpd/httpd/trunk/modules/ldap/util_ldap_cache.c
Date Wed, 09 Mar 2005 18:10:57 GMT
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



Mime
View raw message