@@ -82,31 +82,31 @@ class ConfigSet {
8282class RulesProperties {
8383 public:
8484 RulesProperties () :
85- m_debugLog (new DebugLog()),
8685 m_auditLog (new AuditLog()),
87- m_remoteRulesActionOnFailed (PropertyNotSetRemoteRulesAction),
86+ m_requestBodyLimitAction (PropertyNotSetBodyLimitAction),
87+ m_responseBodyLimitAction (PropertyNotSetBodyLimitAction),
8888 m_secRequestBodyAccess (PropertyNotSetConfigBoolean),
8989 m_secResponseBodyAccess (PropertyNotSetConfigBoolean),
9090 m_secXMLExternalEntity (PropertyNotSetConfigBoolean),
91- m_requestBodyLimitAction (PropertyNotSetBodyLimitAction),
92- m_responseBodyLimitAction (PropertyNotSetBodyLimitAction),
93- m_secRuleEngine (PropertyNotSetRuleEngine),
91+ m_tmpSaveUploadedFiles (PropertyNotSetConfigBoolean),
9492 m_uploadKeepFiles (PropertyNotSetConfigBoolean),
95- m_tmpSaveUploadedFiles (PropertyNotSetConfigBoolean) { }
93+ m_debugLog (new DebugLog()),
94+ m_remoteRulesActionOnFailed (PropertyNotSetRemoteRulesAction),
95+ m_secRuleEngine (PropertyNotSetRuleEngine) { }
9696
9797
9898 explicit RulesProperties (DebugLog *debugLog) :
99- m_debugLog(debugLog),
10099 m_auditLog(new AuditLog()),
101- m_remoteRulesActionOnFailed(PropertyNotSetRemoteRulesAction),
100+ m_requestBodyLimitAction(PropertyNotSetBodyLimitAction),
101+ m_responseBodyLimitAction(PropertyNotSetBodyLimitAction),
102102 m_secRequestBodyAccess(PropertyNotSetConfigBoolean),
103103 m_secResponseBodyAccess(PropertyNotSetConfigBoolean),
104104 m_secXMLExternalEntity(PropertyNotSetConfigBoolean),
105- m_requestBodyLimitAction(PropertyNotSetBodyLimitAction),
106- m_responseBodyLimitAction(PropertyNotSetBodyLimitAction),
107- m_secRuleEngine(PropertyNotSetRuleEngine),
105+ m_tmpSaveUploadedFiles(PropertyNotSetConfigBoolean),
108106 m_uploadKeepFiles(PropertyNotSetConfigBoolean),
109- m_tmpSaveUploadedFiles(PropertyNotSetConfigBoolean) { }
107+ m_debugLog(debugLog),
108+ m_remoteRulesActionOnFailed(PropertyNotSetRemoteRulesAction),
109+ m_secRuleEngine(PropertyNotSetRuleEngine) { }
110110
111111
112112 ~RulesProperties () {
@@ -360,7 +360,7 @@ class RulesProperties {
360360 std::vector<actions::Action *> *actions_from = \
361361 from->m_defaultActions +i;
362362 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++) {
364364 actions::Action *action = actions_from->at (j);
365365 action->refCountIncrease ();
366366 actions_to->push_back (action);
@@ -411,9 +411,9 @@ class RulesProperties {
411411 for (int i = 0 ; i < modsecurity::Phases::NUMBER_OF_PHASES; i++) {
412412 std::vector<modsecurity::Rule *> *rules_to = to+i;
413413 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++) {
415415 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++) {
417417 Rule *rule_ckc = rules_to->at (z);
418418 if (rule_ckc->m_ruleId == rule->m_ruleId &&
419419 rule_ckc->m_secMarker == false &&
0 commit comments