mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Fix ipmatch
This commit is contained in:
parent
c2504b1008
commit
21e4223182
@ -436,11 +436,6 @@ static int msre_op_ipmatch_execute(modsec_rec *msr, msre_rule *rule, msre_var *v
|
||||
if (error_msg == NULL) return -1;
|
||||
*error_msg = NULL;
|
||||
|
||||
if(var == NULL || (strcmp(var->name,"REMOTE_ADDR") != 0 ) || (strcmp(var->name,"SERVER_ADDR") != 0 )) {
|
||||
*error_msg = "Internal Error: Operator ipmatch only works with REMOTE_ADDR and SERVER_ADDR variable.";
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(ipdata == NULL) {
|
||||
*error_msg = "Internal Error: ipmatch is null.";
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user