From d47e32966f9af955e67d3a0ef0fd1cb02e851951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 7 Jul 2017 15:41:10 +0300 Subject: [PATCH] MXS-1312: Make the permission rule the default type If a rule is defined with only an optional part, it should be of the permission type. This type is used to signal that the rule matches if the optional constraints are fulfilled. Due to refactoring, the default type was changed from RT_PERMISSION to RT_UNDEFINED. --- server/modules/filter/dbfwfilter/dbfwfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/filter/dbfwfilter/dbfwfilter.c b/server/modules/filter/dbfwfilter/dbfwfilter.c index 343b590bc..8955aba64 100644 --- a/server/modules/filter/dbfwfilter/dbfwfilter.c +++ b/server/modules/filter/dbfwfilter/dbfwfilter.c @@ -1007,7 +1007,7 @@ bool create_rule(void* scanner, const char* name) if (ruledef && (ruledef->name = MXS_STRDUP(name))) { - ruledef->type = RT_UNDEFINED; + ruledef->type = RT_PERMISSION; ruledef->on_queries = QUERY_OP_UNDEFINED; ruledef->next = rstack->rule; ruledef->active = NULL;