1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-01 07:26:57 +03:00

If the file specified by SSLMutex cannot be created (because the directory does not exist for example), children will segfault on init without giving any reason that the user can figure out. This happens because the module init in the parent never checks to see if the mutex intialization succeded. This patch adds this check and a user-friendly error message.

(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
This commit is contained in:
Justin Erenkrantz
2002-02-16 18:35:21 +00:00
parent e52a26d698
commit 39b3c29d1e
3 changed files with 12 additions and 2 deletions

View File

@ -214,7 +214,9 @@ int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
/*
* 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);
/*