Fixed rule parsing failing if at_times is used with on_queries.
This commit is contained in:
@ -946,6 +946,8 @@ bool parse_rule(char* rule, FW_INSTANCE* instance)
|
|||||||
|
|
||||||
while(tok)
|
while(tok)
|
||||||
{
|
{
|
||||||
|
reparse_rule:
|
||||||
|
|
||||||
if(strcmp(tok,"wildcard") == 0)
|
if(strcmp(tok,"wildcard") == 0)
|
||||||
{
|
{
|
||||||
ruledef->type = RT_WILDCARD;
|
ruledef->type = RT_WILDCARD;
|
||||||
@ -974,7 +976,8 @@ bool parse_rule(char* rule, FW_INSTANCE* instance)
|
|||||||
tok = strtok_r(NULL, " ,",&saveptr);
|
tok = strtok_r(NULL, " ,",&saveptr);
|
||||||
TIMERANGE *tr = NULL;
|
TIMERANGE *tr = NULL;
|
||||||
while(tok){
|
while(tok){
|
||||||
|
if(strcmp(tok,"on_queries") == 0)
|
||||||
|
goto reparse_rule;
|
||||||
if(!check_time(tok))
|
if(!check_time(tok))
|
||||||
{
|
{
|
||||||
skygw_log_write(LOGFILE_ERROR,"dbfwfilter: Rule parsing failed, malformed time definition: %s",tok);
|
skygw_log_write(LOGFILE_ERROR,"dbfwfilter: Rule parsing failed, malformed time definition: %s",tok);
|
||||||
|
|||||||
Reference in New Issue
Block a user