Move init of msr->msc_rule_mptmp before msr storage.

This commit is contained in:
brectanus 2007-09-28 21:06:57 +00:00
parent fe1021e369
commit 27ba3027b7

View File

@ -337,6 +337,8 @@ static modsec_rec *create_tx_context(request_rec *r) {
msr->request_headers = apr_table_copy(msr->mp, r->headers_in);
msr->hostname = ap_get_server_name(r);
msr->msc_rule_mptmp = NULL;
/* Invoke the engine to continue with initialisation */
if (modsecurity_tx_init(msr) < 0) {
msr_log(msr, 1, "Failed to initialising transaction (txid %s).", msr->txid);
@ -349,8 +351,6 @@ static modsec_rec *create_tx_context(request_rec *r) {
msr_log(msr, 4, "Transaction context created (dcfg %x).", msr->dcfg1);
}
msr->msc_rule_mptmp = NULL;
return msr;
}