mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
* Do not segfault when either no mutex is needed either because no session
cache is configured or the session is thread safe. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@631693 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -87,8 +87,10 @@ int ssl_mutex_reinit(server_rec *s, apr_pool_t *p)
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user