A rules object may be empty
This commit is contained in:
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);
|
MXS_ERROR("The cache rules object contains a `%s` key, but it is not an array.", KEY_USE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
parsed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return parsed;
|
return parsed;
|
||||||
|
Reference in New Issue
Block a user