@@ -237,7 +237,7 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
237237 ngx_str_t s ;
238238 ngx_pool_cleanup_t * cln ;
239239 ngx_http_modsecurity_ctx_t * ctx ;
240- ngx_http_modsecurity_conf_t * mlcf ;
240+ ngx_http_modsecurity_conf_t * mcf ;
241241 ngx_http_modsecurity_main_conf_t * mmcf ;
242242
243243 ctx = ngx_pcalloc (r -> pool , sizeof (ngx_http_modsecurity_ctx_t ));
@@ -248,18 +248,18 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
248248 }
249249
250250 mmcf = ngx_http_get_module_main_conf (r , ngx_http_modsecurity_module );
251- mlcf = ngx_http_get_module_loc_conf (r , ngx_http_modsecurity_module );
251+ mcf = ngx_http_get_module_loc_conf (r , ngx_http_modsecurity_module );
252252
253- dd ("creating transaction with the following rules: '%p' -- ms: '%p'" , mlcf -> rules_set , mmcf -> modsec );
253+ dd ("creating transaction with the following rules: '%p' -- ms: '%p'" , mcf -> rules_set , mmcf -> modsec );
254254
255- if (mlcf -> transaction_id ) {
256- if (ngx_http_complex_value (r , mlcf -> transaction_id , & s ) != NGX_OK ) {
255+ if (mcf -> transaction_id ) {
256+ if (ngx_http_complex_value (r , mcf -> transaction_id , & s ) != NGX_OK ) {
257257 return NGX_CONF_ERROR ;
258258 }
259- ctx -> modsec_transaction = msc_new_transaction_with_id (mmcf -> modsec , mlcf -> rules_set , (char * ) s .data , r -> connection -> log );
259+ ctx -> modsec_transaction = msc_new_transaction_with_id (mmcf -> modsec , mcf -> rules_set , (char * ) s .data , r -> connection -> log );
260260
261261 } else {
262- ctx -> modsec_transaction = msc_new_transaction (mmcf -> modsec , mlcf -> rules_set , r -> connection -> log );
262+ ctx -> modsec_transaction = msc_new_transaction (mmcf -> modsec , mcf -> rules_set , r -> connection -> log );
263263 }
264264
265265 dd ("transaction created" );
0 commit comments