File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,10 @@ static msc_t *create_tx_context(request_rec *r) {
148
148
unique_id = getenv ("UNIQUE_ID" );
149
149
if (unique_id != NULL && strlen (unique_id ) > 0 ) {
150
150
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 );
152
152
} else {
153
153
msr -> t = msc_new_transaction (msc_apache -> modsec ,
154
- ( Rules * ) z -> rules_set , (void * )r );
154
+ z -> rules_set , (void * )r );
155
155
}
156
156
157
157
store_tx_context (msr , r );
Original file line number Diff line number Diff line change 3
3
#include <ctype.h>
4
4
5
5
#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
6
15
#include <modsecurity/rules.h>
16
+ #endif
7
17
#include <modsecurity/intervention.h>
8
18
9
19
#include "apr_buckets.h"
@@ -46,7 +56,7 @@ typedef struct
46
56
47
57
typedef struct
48
58
{
49
- Rules * rules_set ;
59
+ void * rules_set ;
50
60
int msc_state ;
51
61
char * name_for_debug ;
52
62
} msc_conf_t ;
You can’t perform that action at this time.
0 commit comments