From: Bradley Nicholes Date: Wed, 9 Mar 2005 18:10:47 +0000 (+0000) Subject: Don't attempt to remove the cache_file if one was never specified. X-Git-Tag: 2.1.4~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9182642bfd22d4f1202fa11c25ebfa42e9f10207;p=apache 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 --- 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