MXS-1345: Allow an empty list of functions

The function type rule now accepts an empty list of functions, allowing
all functions to be blocked by defining an empty function type rule and
setting action=allow.
This commit is contained in:
Markus Mäkelä
2017-08-09 13:35:24 +03:00
parent 0d2514b9ce
commit ebe9596966
2 changed files with 7 additions and 0 deletions

View File

@ -114,6 +114,7 @@ mandatory:
| FWTOK_REGEX FWTOK_QUOTEDSTR {if (!define_regex_rule(scanner, $2)){YYERROR;}}
| FWTOK_COLUMNS columnlist
| FWTOK_FUNCTION functionlist
| FWTOK_FUNCTION {if (!define_function_rule(scanner, "")){YYERROR;}}
;
columnlist: