]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Add workround for rspamd-1.3
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 May 2016 12:01:13 +0000 (13:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 May 2016 12:01:13 +0000 (13:01 +0100)
src/fuzzy_storage.c

index f43cb3f440d8a9961f66bf9379d8ccdf4751c56a..0f6e3e88d93e46aeabbd2a1f9ec23b0d7b710880 100644 (file)
@@ -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;