[rs-commit] r229 - in /mod_ca/trunk: ChangeLog mod_ca_simple.c

rs-commit at redwax.eu rs-commit at redwax.eu
Sat Jan 4 20:35:14 CET 2020


Author: minfrin at redwax.eu
Date: Sat Jan  4 20:35:13 2020
New Revision: 229

Log:
Remove unnecessary ap_state_query call.

Modified:
    mod_ca/trunk/ChangeLog
    mod_ca/trunk/mod_ca_simple.c

Modified: mod_ca/trunk/ChangeLog
==============================================================================
--- mod_ca/trunk/ChangeLog	(original)
+++ mod_ca/trunk/ChangeLog	Sat Jan  4 20:35:13 2020
@@ -1,5 +1,7 @@
 
 Changes with v0.2.2
+
+ *) Remove unnecessary ap_state_query call. [Graham Leggett]
 
  *) RPM spec file: build natively on Redhat, SUSE and Mageia.
     [Graham Leggett]

Modified: mod_ca/trunk/mod_ca_simple.c
==============================================================================
--- mod_ca/trunk/mod_ca_simple.c	(original)
+++ mod_ca/trunk/mod_ca_simple.c	Sat Jan  4 20:35:13 2020
@@ -1022,13 +1022,6 @@
     ca_config_rec *conf = dconf;
     BIO *in;
 
-    /* set_signing_key() 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 NULL;
-    }
-
     arg = ap_server_root_relative(cmd->pool, arg);
 
     in = BIO_new(BIO_s_file());



More information about the rs-commit mailing list