mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Using shared_ptr instead of unique_ptr on rules exceptions
This commit is contained in:
@@ -683,6 +683,9 @@ bool Rule::evaluate(Transaction *trans,
|
||||
|
||||
for (auto &var : vars) {
|
||||
std::vector<const VariableValue *> e;
|
||||
if (!var) {
|
||||
continue;
|
||||
}
|
||||
var->evaluate(trans, this, &e);
|
||||
for (const VariableValue *v : e) {
|
||||
const std::string &value = v->m_value;
|
||||
|
Reference in New Issue
Block a user