From: Bradley Nicholes Date: Sat, 26 Jun 2004 16:00:26 +0000 (+0000) Subject: Check for a NULL file name before trying to delete the file X-Git-Tag: pre_ajp_proxy~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a76c1ffa9b011b09e79a1b7525fcf322017c81c7;p=apache 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 --- 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