mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Refactoring on the operators parsers (2/2)
This is the first step towards remove the memory leaks in the parser
This commit is contained in:
committed by
Felipe Zimmerle
parent
9cda4c0be0
commit
59114dd598
@@ -21,7 +21,6 @@
|
||||
#include "src/operators/operator.h"
|
||||
#include "src/utils/ip_tree.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
namespace modsecurity {
|
||||
namespace operators {
|
||||
|
||||
@@ -30,7 +29,10 @@ class IpMatch : public Operator {
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
IpMatch(std::string op, std::string param, bool negation)
|
||||
: Operator(op, param, negation) { }
|
||||
|
||||
IpMatch(std::string op, std::string param)
|
||||
: Operator(op, param) { }
|
||||
explicit IpMatch(std::string param)
|
||||
: Operator("IpMatch", param) { }
|
||||
bool evaluate(Transaction *transaction, const std::string &input) override;
|
||||
|
||||
bool init(const std::string &file, std::string *error) override;
|
||||
@@ -41,7 +43,6 @@ class IpMatch : public Operator {
|
||||
|
||||
} // namespace operators
|
||||
} // namespace modsecurity
|
||||
#endif
|
||||
|
||||
|
||||
#endif // SRC_OPERATORS_IP_MATCH_H_
|
||||
|
Reference in New Issue
Block a user