]> granicus.if.org Git - apache/commitdiff
Fix brokeness... Thx Rüdiger Plüm
authorJim Jagielski <jim@apache.org>
Thu, 10 Mar 2011 16:52:42 +0000 (16:52 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 10 Mar 2011 16:52:42 +0000 (16:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1080276 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_socache.c

index 1ec76e80ebf4d396050a351b449bbddad3bff37d..4d7cfd87835f7c338b79b5c6971b8d96e1cbb848 100644 (file)
@@ -126,11 +126,12 @@ static int authn_cache_post_config(apr_pool_t *pconf, apr_pool_t *plog,
 }
 static void authn_cache_child_init(apr_pool_t *p, server_rec *s)
 {
-    const char *lock = apr_global_mutex_lockfile(authn_cache_mutex);
+    const char *lock;
     apr_status_t rv;
     if (!configured) {
         return;       /* don't waste the overhead of creating mutex & cache */
     }
+    lock = apr_global_mutex_lockfile(authn_cache_mutex);
     rv = apr_global_mutex_child_init(&authn_cache_mutex, lock, p);
     if (rv != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_CRIT, rv, s,