httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1550312 - /httpd/httpd/trunk/modules/session/mod_session_crypto.c
Date Wed, 11 Dec 2013 23:14:46 GMT
Author: minfrin
Date: Wed Dec 11 23:14:46 2013
New Revision: 1550312

URL: http://svn.apache.org/r1550312
Log:
mod_session_crypto: Make sure we try to initialise twice, so we don't
succeed in configtest but fail on restart.

Modified:
    httpd/httpd/trunk/modules/session/mod_session_crypto.c

Modified: httpd/httpd/trunk/modules/session/mod_session_crypto.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session_crypto.c?rev=1550312&r1=1550311&r2=1550312&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session_crypto.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session_crypto.c Wed Dec 11 23:14:46 2013
@@ -407,13 +407,6 @@ static int session_crypto_init(apr_pool_
     session_crypto_conf *conf = ap_get_module_config(s->module_config,
             &session_crypto_module);
 
-    /* session_crypto_init() will be called twice. Don't bother
-     * going through all of the initialization on the first call
-     * because it will just be thrown away.*/
-    if (ap_state_query(AP_SQ_MAIN_STATE) == AP_SQ_MS_CREATE_PRE_CONFIG) {
-        return OK;
-    }
-
     if (conf->library) {
 
         const apu_err_t *err = NULL;



Mime
View raw message