Fixed a segfaul caused by a null pointer in dbfwfilter rule parsing.

This commit is contained in:
Markus Makela 2015-04-30 04:52:35 +03:00
parent 00abb38689
commit 6e4aa9862d

View File

@ -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;
}