File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2121#include < vector>
2222#include < list>
2323#include < set>
24+ #include < unordered_set>
2425#endif
2526
2627
@@ -440,7 +441,9 @@ class RulesProperties {
440441 bool do_check = rule->m_secMarker == false ;
441442
442443 if (do_check) {
443- std::set<int64_t >::iterator it = to->m_ruleIds .find (rule->m_ruleId );
444+ std::unordered_set<int64_t >::iterator it =
445+ to->m_ruleIds .find (rule->m_ruleId );
446+
444447 if (it != to->m_ruleIds .end ()) {
445448 if (err != NULL ) {
446449 *err << " Rule id: " \
@@ -498,7 +501,7 @@ class RulesProperties {
498501 ConfigString m_secWebAppId;
499502 std::vector<actions::Action *> m_defaultActions[8 ];
500503 std::vector<modsecurity::Rule *> m_rules[8 ];
501- std::set <int64_t > m_ruleIds;
504+ std::unordered_set <int64_t > m_ruleIds;
502505 ConfigUnicodeMap m_unicodeMapTable;
503506};
504507
You can’t perform that action at this time.
0 commit comments