httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1080276 - /httpd/httpd/trunk/modules/aaa/mod_authn_socache.c
Date Thu, 10 Mar 2011 16:52:42 GMT
Author: jim
Date: Thu Mar 10 16:52:42 2011
New Revision: 1080276

URL: http://svn.apache.org/viewvc?rev=1080276&view=rev
Log:
Fix brokeness... Thx Rüdiger Plüm

Modified:
    httpd/httpd/trunk/modules/aaa/mod_authn_socache.c

Modified: httpd/httpd/trunk/modules/aaa/mod_authn_socache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_authn_socache.c?rev=1080276&r1=1080275&r2=1080276&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_authn_socache.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_authn_socache.c Thu Mar 10 16:52:42 2011
@@ -126,11 +126,12 @@ static int authn_cache_post_config(apr_p
 }
 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,



Mime
View raw message