Fixed a segfaul caused by a null pointer in dbfwfilter rule parsing.
This commit is contained in:
parent
00abb38689
commit
6e4aa9862d
@ -1041,7 +1041,7 @@ bool parse_rule(char* rule, FW_INSTANCE* instance)
|
||||
|
||||
ruledef->active = tr;
|
||||
|
||||
if(strcmp(tok,"on_queries") == 0)
|
||||
if(tok && strcmp(tok,"on_queries") == 0)
|
||||
goto reparse_rule;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user