(Justin made one formatting change to this patch.)
Submitted by: Adam Sussman <myddryn@vishnu.vidya.com>
Reviewed by: Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93441
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.33-dev
+
+ *) Fix segfault and display error when SSLMutex file can not be
+ created. [Adam Sussman <myddryn@vishnu.vidya.com>]
+
*) Add reference counting to mod_mem_cache cache objects to
better manage removing objects from the cache.
[Bill Stoddard]
/*
* initialize the mutex handling and session caching
*/
- ssl_mutex_init(s, p);
+ if (!ssl_mutex_init(s, p)) {
+ return HTTP_INTERNAL_SERVER_ERROR;
+ }
ssl_scache_init(s, p);
/*
return TRUE;
if (apr_lock_create(&mc->pMutex, APR_MUTEX, APR_LOCKALL, APR_LOCK_DEFAULT,
- mc->szMutexFile, p) != APR_SUCCESS)
+ mc->szMutexFile, p) != APR_SUCCESS) {
+ ssl_log(s, SSL_LOG_CRIT|SSL_ADD_ERRNO,
+ "Cannot create SSLMutex file `%s'",
+ mc->szMutexFile);
return FALSE;
+ }
return TRUE;
}