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 21
21
#include < vector>
22
22
#include < list>
23
23
#include < set>
24
+ #include < unordered_set>
24
25
#endif
25
26
26
27
@@ -440,7 +441,9 @@ class RulesProperties {
440
441
bool do_check = rule->m_secMarker == false ;
441
442
442
443
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
+
444
447
if (it != to->m_ruleIds .end ()) {
445
448
if (err != NULL ) {
446
449
*err << " Rule id: " \
@@ -498,7 +501,7 @@ class RulesProperties {
498
501
ConfigString m_secWebAppId;
499
502
std::vector<actions::Action *> m_defaultActions[8 ];
500
503
std::vector<modsecurity::Rule *> m_rules[8 ];
501
- std::set <int64_t > m_ruleIds;
504
+ std::unordered_set <int64_t > m_ruleIds;
502
505
ConfigUnicodeMap m_unicodeMapTable;
503
506
};
504
507
You can’t perform that action at this time.
0 commit comments