mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Modify post_config hook so that it can return a error,
causing the server not to start. previous method was to call exit(1) which would not fail gracefully PR: Obtained from: Submitted by: Reviewed by: (Idea only Jeff Trawick) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92144 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
/*
|
||||
* Per-module initialization
|
||||
*/
|
||||
void ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
|
||||
int ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
|
||||
apr_pool_t *ptemp, server_rec *s)
|
||||
{
|
||||
SSLModConfigRec *mc = myModConfig(s);
|
||||
@@ -191,7 +191,7 @@ void ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
|
||||
if (mc->nInitCount == 1) {
|
||||
ssl_pphrase_Handle(s, p);
|
||||
ssl_init_TmpKeysHandle(SSL_TKP_GEN, s, p);
|
||||
return;
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -265,7 +265,7 @@ void ssl_init_Module(apr_pool_t *p, apr_pool_t *plog,
|
||||
ap_add_version_component(p, ssl_var_lookup(p, s, NULL, NULL, "SSL_VERSION_LIBRARY"));
|
||||
|
||||
SSL_init_app_data2_idx(); /* for SSL_get_app_data2() at request time */
|
||||
return;
|
||||
return OK;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user