aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 18:42:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-23 18:42:16 +0100
commit9f8183fbb7bdbb38c0c5e9d7c2a2419fd0c2f074 (patch)
tree5c6b43a98caba1a4bd15f6afd3c5c6520a265f2b /src/plugins/fuzzy_check.c
parent1fe4fe45afa7d6749e1dbb1e95d2371120830a4c (diff)
downloadrspamd-9f8183fbb7bdbb38c0c5e9d7c2a2419fd0c2f074.tar.gz
rspamd-9f8183fbb7bdbb38c0c5e9d7c2a2419fd0c2f074.zip
[Feature] Implement multi-flags fuzzy replies
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) {