From 9f8183fbb7bdbb38c0c5e9d7c2a2419fd0c2f074 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 23 May 2016 18:42:16 +0100 Subject: [Feature] Implement multi-flags fuzzy replies --- src/plugins/fuzzy_check.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/plugins/fuzzy_check.c') 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) { -- cgit v1.2.3