mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Move init of msr->msc_rule_mptmp before msr storage.
This commit is contained in:
parent
fe1021e369
commit
27ba3027b7
@ -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->request_headers = apr_table_copy(msr->mp, r->headers_in);
|
||||||
msr->hostname = ap_get_server_name(r);
|
msr->hostname = ap_get_server_name(r);
|
||||||
|
|
||||||
|
msr->msc_rule_mptmp = NULL;
|
||||||
|
|
||||||
/* Invoke the engine to continue with initialisation */
|
/* Invoke the engine to continue with initialisation */
|
||||||
if (modsecurity_tx_init(msr) < 0) {
|
if (modsecurity_tx_init(msr) < 0) {
|
||||||
msr_log(msr, 1, "Failed to initialising transaction (txid %s).", msr->txid);
|
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_log(msr, 4, "Transaction context created (dcfg %x).", msr->dcfg1);
|
||||||
}
|
}
|
||||||
|
|
||||||
msr->msc_rule_mptmp = NULL;
|
|
||||||
|
|
||||||
return msr;
|
return msr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user