]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Mark expired hashes as not found and not as zero flag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Jul 2016 17:07:09 +0000 (18:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 19 Jul 2016 17:07:09 +0000 (18:07 +0100)
src/libserver/fuzzy_backend.c

index 7023ab575c8e279e51a2340837892f7d31e28d00..463fdd1f4cfbf2ee9d83eb512255138ab5bb7664 100644 (file)
@@ -601,6 +601,7 @@ rspamd_fuzzy_backend_check (struct rspamd_fuzzy_backend *backend,
                                                /* Expire element */
                                                msg_debug_fuzzy_backend (
                                                                "requested hash has been expired");
+                                               rep.prob = 0.0;
                                        }
                                        else {
                                                rep.value = sqlite3_column_int64 (