mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds refCounter to actions
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "modsecurity/modsecurity.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "modsecurity/rules_exceptions.h"
|
||||
#include "modsecurity/actions/action.h"
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -40,9 +41,6 @@ class RulesExceptions;
|
||||
namespace audit_log {
|
||||
class AuditLog;
|
||||
}
|
||||
namespace actions {
|
||||
class Action;
|
||||
}
|
||||
namespace Parser {
|
||||
class Driver;
|
||||
}
|
||||
@@ -324,6 +322,7 @@ class RulesProperties {
|
||||
std::vector<actions::Action *> *actions_to = to->defaultActions+i;
|
||||
for (int j = 0; j < actions_from->size(); j++) {
|
||||
actions::Action *action = actions_from->at(j);
|
||||
action->refCountIncrease();
|
||||
actions_to->push_back(action);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user