Fix the size of the rules and actions vectors

This commit is contained in:
Felipe Zimmerle 2016-09-01 00:39:54 -03:00
parent 8d84ff6f4d
commit c3378ec528
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -107,7 +107,7 @@ class RulesProperties {
delete m_debugLog; delete m_debugLog;
} }
std::vector<Rule *> rules[7]; std::vector<Rule *> rules[8];
std::vector<Rule *> * getRulesForPhase(int phase) { std::vector<Rule *> * getRulesForPhase(int phase) {
if (phase > 7) { if (phase > 7) {
return NULL; return NULL;
@ -116,7 +116,7 @@ class RulesProperties {
} }
// ModSecurity::Phases::NUMBER_OF_PHASES // ModSecurity::Phases::NUMBER_OF_PHASES
std::vector<actions::Action *> defaultActions[7]; std::vector<actions::Action *> defaultActions[8];
// ModSecurity::Phases::NUMBER_OF_PHASES // ModSecurity::Phases::NUMBER_OF_PHASES
/** /**