From: Joe Orton Date: Wed, 3 Aug 2005 14:44:29 +0000 (+0000) Subject: * modules/ldap/util_ldap.c (util_ldap_post_config): Pass NULL to X-Git-Tag: 2.1.7~5^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4ff0cc58d60cb2a128b38cbea542a60a296c061;p=thirdparty%2Fapache%2Fhttpd.git * modules/ldap/util_ldap.c (util_ldap_post_config): Pass NULL to apr_global_mutex_create if no cache file name is specified, rather than inventing an inappropriate name with tmpnam(). PR: 30385 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@227230 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ldap/util_ldap.c b/modules/ldap/util_ldap.c index 7e07116881e..4aff9388cb0 100644 --- a/modules/ldap/util_ldap.c +++ b/modules/ldap/util_ldap.c @@ -1841,9 +1841,7 @@ static int util_ldap_post_config(apr_pool_t *p, apr_pool_t *plog, st->lock_file = apr_pstrcat(st->pool, st->cache_file, ".lck", NULL); } - else #endif - st->lock_file = ap_server_root_relative(st->pool, tmpnam(NULL)); result = apr_global_mutex_create(&st->util_ldap_cache_lock, st->lock_file, APR_LOCK_DEFAULT,