From: Vsevolod Stakhov Date: Tue, 24 May 2016 12:01:13 +0000 (+0100) Subject: [Fix] Add workround for rspamd-1.3 X-Git-Tag: 1.2.7~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fddec436acdfd1e1725176abb1cbc76299b071d;p=thirdparty%2Frspamd.git [Fix] Add workround for rspamd-1.3 --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index f43cb3f440..0f6e3e88d9 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -521,7 +521,7 @@ rspamd_fuzzy_command_valid (struct rspamd_fuzzy_cmd *cmd, gint r) { enum rspamd_fuzzy_epoch ret = RSPAMD_FUZZY_EPOCH_MAX; - if (cmd->version == RSPAMD_FUZZY_VERSION) { + if (cmd->version >= RSPAMD_FUZZY_VERSION) { if (cmd->shingles_count > 0) { if (r == sizeof (struct rspamd_fuzzy_shingle_cmd)) { ret = RSPAMD_FUZZY_EPOCH9;