httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r631693 - /httpd/httpd/trunk/modules/ssl/ssl_engine_mutex.c
Date Wed, 27 Feb 2008 19:55:42 GMT
Author: rpluem
Date: Wed Feb 27 11:55:25 2008
New Revision: 631693

URL: http://svn.apache.org/viewvc?rev=631693&view=rev
Log:
* Do not segfault when either no mutex is needed either because no session
  cache is configured or the session is thread safe.

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_engine_mutex.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_mutex.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_engine_mutex.c?rev=631693&r1=631692&r2=631693&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_mutex.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_mutex.c Wed Feb 27 11:55:25 2008
@@ -87,8 +87,10 @@
     SSLModConfigRec *mc = myModConfig(s);
     apr_status_t rv;
 
-    if (mc->nMutexMode == SSL_MUTEXMODE_NONE)
+    if (mc->nMutexMode == SSL_MUTEXMODE_NONE || !mc->sesscache
+        || (mc->sesscache->flags & MODSSL_SESSCACHE_FLAG_NOTMPSAFE) == 0) {
         return TRUE;
+    }
 
     if ((rv = apr_global_mutex_child_init(&mc->pMutex,
                                     mc->szMutexFile, p)) != APR_SUCCESS) {



Mime
View raw message