Fixed wrong value being used for users rules in dbfwfilter
A parsed, local copy of the string was duplicated instead of the original string which caused the parsing to always fail.
This commit is contained in:
@ -1181,7 +1181,7 @@ bool parse_rule(char* rulestr, FW_INSTANCE* instance)
|
|||||||
else if (strcmp("users", tok) == 0)
|
else if (strcmp("users", tok) == 0)
|
||||||
{
|
{
|
||||||
/** Rules are applied to users after they have been parsed */
|
/** Rules are applied to users after they have been parsed */
|
||||||
add_users(rule, instance);
|
add_users(rulestr, instance);
|
||||||
rval = true;
|
rval = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user