diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-23 18:42:16 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-23 18:42:16 +0100 |
commit | 9f8183fbb7bdbb38c0c5e9d7c2a2419fd0c2f074 (patch) | |
tree | 5c6b43a98caba1a4bd15f6afd3c5c6520a265f2b /src/plugins/fuzzy_check.c | |
parent | 1fe4fe45afa7d6749e1dbb1e95d2371120830a4c (diff) | |
download | rspamd-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.c | 7 |
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) { |