From a76c1ffa9b011b09e79a1b7525fcf322017c81c7 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Sat, 26 Jun 2004 16:00:26 +0000 Subject: [PATCH] Check for a NULL file name before trying to delete the file git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104044 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/util_ldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/experimental/util_ldap.c b/modules/experimental/util_ldap.c index 72797c7fd8..3b5e1c5869 100644 --- a/modules/experimental/util_ldap.c +++ b/modules/experimental/util_ldap.c @@ -1188,9 +1188,9 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, #if APR_HAS_SHARED_MEMORY /* If the cache file already exists then delete it. Otherwise we are * going to run into problems creating the shared memory. */ - apr_file_remove(st->cache_file, ptemp); if (st->cache_file) { char *lck_file = apr_pstrcat (st->pool, st->cache_file, ".lck", NULL); + apr_file_remove(st->cache_file, ptemp); apr_file_remove(lck_file, ptemp); } #endif -- 2.50.1