A rules object may be empty
This commit is contained in:
parent
df09dd2043
commit
b81c86f228
4
server/modules/filter/cache/rules.cc
vendored
4
server/modules/filter/cache/rules.cc
vendored
@ -1886,6 +1886,10 @@ static bool cache_rules_parse_json(CACHE_RULES *self, json_t *root)
|
||||
MXS_ERROR("The cache rules object contains a `%s` key, but it is not an array.", KEY_USE);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
parsed = true;
|
||||
}
|
||||
}
|
||||
|
||||
return parsed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user