1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

* 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
This commit is contained in:
Joe Orton
2005-08-03 14:44:29 +00:00
parent 7754d8254f
commit e4ff0cc58d

View File

@@ -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", st->lock_file = apr_pstrcat(st->pool, st->cache_file, ".lck",
NULL); NULL);
} }
else
#endif #endif
st->lock_file = ap_server_root_relative(st->pool, tmpnam(NULL));
result = apr_global_mutex_create(&st->util_ldap_cache_lock, result = apr_global_mutex_create(&st->util_ldap_cache_lock,
st->lock_file, APR_LOCK_DEFAULT, st->lock_file, APR_LOCK_DEFAULT,