From 9182642bfd22d4f1202fa11c25ebfa42e9f10207 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Wed, 9 Mar 2005 18:10:47 +0000 Subject: [PATCH] Don't attempt to remove the cache_file if one was never specified. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@156665 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ldap/util_ldap_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ldap/util_ldap_cache.c b/modules/ldap/util_ldap_cache.c index 9adf20a4fa..ce95c59b95 100644 --- a/modules/ldap/util_ldap_cache.c +++ b/modules/ldap/util_ldap_cache.c @@ -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 -- 2.40.0