aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/fuzzy_backend.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-19 18:07:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-19 18:07:09 +0100
commit6847c78a0737a08b55857f7be78a75ae11166f7e (patch)
tree52e4dda115be2fe393d08095a9ba4960d4980b9a /src/libserver/fuzzy_backend.c
parent6630ec81c7f33e631468057e705499fdd5aca9d5 (diff)
downloadrspamd-6847c78a0737a08b55857f7be78a75ae11166f7e.tar.gz
rspamd-6847c78a0737a08b55857f7be78a75ae11166f7e.zip
[Fix] Mark expired hashes as not found and not as zero flag
Diffstat (limited to 'src/libserver/fuzzy_backend.c')
-rw-r--r--src/libserver/fuzzy_backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c
index 7023ab575..463fdd1f4 100644
--- a/src/libserver/fuzzy_backend.c
+++ b/src/libserver/fuzzy_backend.c
@@ -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 (