@@ -82,31 +82,31 @@ class ConfigSet {
82
82
class RulesProperties {
83
83
public:
84
84
RulesProperties () :
85
- m_debugLog (new DebugLog()),
86
85
m_auditLog (new AuditLog()),
87
- m_remoteRulesActionOnFailed (PropertyNotSetRemoteRulesAction),
86
+ m_requestBodyLimitAction (PropertyNotSetBodyLimitAction),
87
+ m_responseBodyLimitAction (PropertyNotSetBodyLimitAction),
88
88
m_secRequestBodyAccess (PropertyNotSetConfigBoolean),
89
89
m_secResponseBodyAccess (PropertyNotSetConfigBoolean),
90
90
m_secXMLExternalEntity (PropertyNotSetConfigBoolean),
91
- m_requestBodyLimitAction (PropertyNotSetBodyLimitAction),
92
- m_responseBodyLimitAction (PropertyNotSetBodyLimitAction),
93
- m_secRuleEngine (PropertyNotSetRuleEngine),
91
+ m_tmpSaveUploadedFiles (PropertyNotSetConfigBoolean),
94
92
m_uploadKeepFiles (PropertyNotSetConfigBoolean),
95
- m_tmpSaveUploadedFiles (PropertyNotSetConfigBoolean) { }
93
+ m_debugLog (new DebugLog()),
94
+ m_remoteRulesActionOnFailed (PropertyNotSetRemoteRulesAction),
95
+ m_secRuleEngine (PropertyNotSetRuleEngine) { }
96
96
97
97
98
98
explicit RulesProperties (DebugLog *debugLog) :
99
- m_debugLog(debugLog),
100
99
m_auditLog(new AuditLog()),
101
- m_remoteRulesActionOnFailed(PropertyNotSetRemoteRulesAction),
100
+ m_requestBodyLimitAction(PropertyNotSetBodyLimitAction),
101
+ m_responseBodyLimitAction(PropertyNotSetBodyLimitAction),
102
102
m_secRequestBodyAccess(PropertyNotSetConfigBoolean),
103
103
m_secResponseBodyAccess(PropertyNotSetConfigBoolean),
104
104
m_secXMLExternalEntity(PropertyNotSetConfigBoolean),
105
- m_requestBodyLimitAction(PropertyNotSetBodyLimitAction),
106
- m_responseBodyLimitAction(PropertyNotSetBodyLimitAction),
107
- m_secRuleEngine(PropertyNotSetRuleEngine),
105
+ m_tmpSaveUploadedFiles(PropertyNotSetConfigBoolean),
108
106
m_uploadKeepFiles(PropertyNotSetConfigBoolean),
109
- m_tmpSaveUploadedFiles(PropertyNotSetConfigBoolean) { }
107
+ m_debugLog(debugLog),
108
+ m_remoteRulesActionOnFailed(PropertyNotSetRemoteRulesAction),
109
+ m_secRuleEngine(PropertyNotSetRuleEngine) { }
110
110
111
111
112
112
~RulesProperties () {
@@ -360,7 +360,7 @@ class RulesProperties {
360
360
std::vector<actions::Action *> *actions_from = \
361
361
from->m_defaultActions +i;
362
362
std::vector<actions::Action *> *actions_to = to->m_defaultActions +i;
363
- for (int j = 0 ; j < actions_from->size (); j++) {
363
+ for (size_t j = 0 ; j < actions_from->size (); j++) {
364
364
actions::Action *action = actions_from->at (j);
365
365
action->refCountIncrease ();
366
366
actions_to->push_back (action);
@@ -411,9 +411,9 @@ class RulesProperties {
411
411
for (int i = 0 ; i < modsecurity::Phases::NUMBER_OF_PHASES; i++) {
412
412
std::vector<modsecurity::Rule *> *rules_to = to+i;
413
413
std::vector<modsecurity::Rule *> *rules_from = from+i;
414
- for (int j = 0 ; j < rules_from->size (); j++) {
414
+ for (size_t j = 0 ; j < rules_from->size (); j++) {
415
415
Rule *rule = rules_from->at (j);
416
- for (int z = 0 ; z < rules_to->size (); z++) {
416
+ for (size_t z = 0 ; z < rules_to->size (); z++) {
417
417
Rule *rule_ckc = rules_to->at (z);
418
418
if (rule_ckc->m_ruleId == rule->m_ruleId &&
419
419
rule_ckc->m_secMarker == false &&
0 commit comments