@@ -237,7 +237,7 @@ ngx_http_modsecurity_create_ctx(ngx_http_request_t *r)
237
237
ngx_str_t s ;
238
238
ngx_pool_cleanup_t * cln ;
239
239
ngx_http_modsecurity_ctx_t * ctx ;
240
- ngx_http_modsecurity_conf_t * mlcf ;
240
+ ngx_http_modsecurity_conf_t * mcf ;
241
241
ngx_http_modsecurity_main_conf_t * mmcf ;
242
242
243
243
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)
248
248
}
249
249
250
250
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 );
252
252
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 );
254
254
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 ) {
257
257
return NGX_CONF_ERROR ;
258
258
}
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 );
260
260
261
261
} 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 );
263
263
}
264
264
265
265
dd ("transaction created" );
0 commit comments