diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 21:55:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 21:55:34 +0000 |
commit | 655b2644d90dfec7294f597df469e2ae3c29948a (patch) | |
tree | cda7bc96ddb2c39a2bdcf95e945673b4ed8e7214 /src/fuzzy_storage.c | |
parent | 88faa68e4e191355f01a4f8546f1d524e0dd79f1 (diff) | |
download | rspamd-655b2644d90dfec7294f597df469e2ae3c29948a.tar.gz rspamd-655b2644d90dfec7294f597df469e2ae3c29948a.zip |
Fix errors processing in fuzzy check
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index dcf538b0d..34b5e631f 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -322,7 +322,7 @@ rspamd_fuzzy_update_stats (enum rspamd_fuzzy_epoch epoch, gboolean matched, #endif if (key_stat) { - if (reply != 0) { + if (!matched && reply != 0) { key_stat->errors ++; } else { @@ -343,7 +343,7 @@ rspamd_fuzzy_update_stats (enum rspamd_fuzzy_epoch epoch, gboolean matched, } if (ip_stat) { - if (reply != 0) { + if (!matched && reply != 0) { ip_stat->errors++; } else { |