]> granicus.if.org Git - apache/commitdiff
Don't attempt to remove the cache_file if one was never specified.
authorBradley Nicholes <bnicholes@apache.org>
Wed, 9 Mar 2005 18:10:47 +0000 (18:10 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Wed, 9 Mar 2005 18:10:47 +0000 (18:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@156665 13f79535-47bb-0310-9956-ffa450edef68

modules/ldap/util_ldap_cache.c

index 9adf20a4faad223184db499df58f949cac0e40fb..ce95c59b95d2b533bdb17935326e944b08cadf7d 100644 (file)
@@ -394,7 +394,9 @@ apr_status_t util_ldap_cache_module_kill(void *data)
     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