mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Cosmetic changes: applies changes suggested by static analysis
This commit is contained in:
@@ -29,7 +29,10 @@ namespace operators {
|
||||
class Operator {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
Operator() { }
|
||||
Operator()
|
||||
: op(""),
|
||||
param(""),
|
||||
negation(false) { }
|
||||
Operator(std::string op, std::string param, bool negation)
|
||||
: op(op),
|
||||
param(param),
|
||||
|
@@ -34,7 +34,6 @@ Pm::~Pm() {
|
||||
acmp_node_t *root = m_p->root_node;
|
||||
acmp_node_t *node = root;
|
||||
|
||||
node = root;
|
||||
cleanup(root);
|
||||
|
||||
free(m_p);
|
||||
|
@@ -32,7 +32,7 @@ namespace operators {
|
||||
|
||||
std::string Rbl::mapIpToAddress(std::string ipStr, Transaction *trans) {
|
||||
std::string addr;
|
||||
unsigned int h0, h1, h2, h3;
|
||||
int h0, h1, h2, h3;
|
||||
std::string key = trans->m_rules->m_httpbl_key;
|
||||
|
||||
if (sscanf(ipStr.c_str(), "%d.%d.%d.%d", &h0, &h1, &h2, &h3) != 4) {
|
||||
|
Reference in New Issue
Block a user