File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,10 +148,10 @@ static msc_t *create_tx_context(request_rec *r) {
148148 unique_id = getenv ("UNIQUE_ID" );
149149 if (unique_id != NULL && strlen (unique_id ) > 0 ) {
150150 msr -> t = msc_new_transaction_with_id (msc_apache -> modsec ,
151- ( Rules * ) z -> rules_set , unique_id , (void * )r );
151+ z -> rules_set , unique_id , (void * )r );
152152 } else {
153153 msr -> t = msc_new_transaction (msc_apache -> modsec ,
154- ( Rules * ) z -> rules_set , (void * )r );
154+ z -> rules_set , (void * )r );
155155 }
156156
157157 store_tx_context (msr , r );
Original file line number Diff line number Diff line change 33#include <ctype.h>
44
55#include <modsecurity/modsecurity.h>
6+ #if defined(MODSECURITY_CHECK_VERSION )
7+ #if MODSECURITY_VERSION_NUM >= 304010
8+ #define MSC_USE_RULES_SET 1
9+ #endif
10+ #endif
11+
12+ #if defined(MSC_USE_RULES_SET )
13+ #include <modsecurity/rules_set.h>
14+ #else
615#include <modsecurity/rules.h>
16+ #endif
717#include <modsecurity/intervention.h>
818
919#include "apr_buckets.h"
@@ -46,7 +56,7 @@ typedef struct
4656
4757typedef struct
4858{
49- Rules * rules_set ;
59+ void * rules_set ;
5060 int msc_state ;
5161 char * name_for_debug ;
5262} msc_conf_t ;
You can’t perform that action at this time.
0 commit comments