diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-28 13:33:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-28 13:33:23 +0100 |
commit | 8cbbfb21efa8edc9359c792f2668f5350cb1032c (patch) | |
tree | 5ae897179980e6b7e60aea52ac3573d64f2bdc5f /src/fuzzy_storage.c | |
parent | d69aea948b25168bc6d0240009952b1e1ee32bc8 (diff) | |
download | rspamd-8cbbfb21efa8edc9359c792f2668f5350cb1032c.tar.gz rspamd-8cbbfb21efa8edc9359c792f2668f5350cb1032c.zip |
[Minor] Disable version 4 of hashes
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 247653c1d..532532f16 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -745,18 +745,6 @@ rspamd_fuzzy_command_valid (struct rspamd_fuzzy_cmd *cmd, gint r) enum rspamd_fuzzy_epoch ret = RSPAMD_FUZZY_EPOCH_MAX; switch (cmd->version) { - case 4: - if (cmd->shingles_count > 0) { - if (r == sizeof (struct rspamd_fuzzy_shingle_cmd)) { - ret = RSPAMD_FUZZY_EPOCH11; - } - } - else { - if (r == sizeof (*cmd)) { - ret = RSPAMD_FUZZY_EPOCH11; - } - } - break; case 3: if (cmd->shingles_count > 0) { if (r == sizeof (struct rspamd_fuzzy_shingle_cmd)) { |