aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index bf4cd3a0a..c11ab40bf 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -188,6 +188,13 @@ parse_flags (struct fuzzy_rule *rule,
if (elt != NULL) {
map->fuzzy_flag = ucl_obj_toint (elt);
+
+ if (map->fuzzy_flag > 31) {
+ msg_err_config ("flags more than 31 are no longer "
+ "supported by rspamd");
+ return;
+ }
+
elt = ucl_object_lookup (val, "max_score");
if (elt != NULL) {