summaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-04 13:39:44 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-04 13:39:44 +0100
commit1b59974e4cfcaf81e5f0a39213ab2589f4618eaf (patch)
treee848139b5d91bcecedd7d2b1de74089990c4e04f /src/plugins/fuzzy_check.c
parent6c76c1728c81e25be854e36cd9def1d689536b27 (diff)
downloadrspamd-1b59974e4cfcaf81e5f0a39213ab2589f4618eaf.tar.gz
rspamd-1b59974e4cfcaf81e5f0a39213ab2589f4618eaf.zip
[Minor] NAN is a bad integer...
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 5f34df4aa..3eed0da51 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -467,7 +467,9 @@ fuzzy_parse_rule (struct rspamd_config *cfg, const ucl_object_t *obj,
/* pass max_error and revive_time configuration in upstream for fuzzy storage
* it allows to configure error_rate threshold and upstream dead timer
*/
- rspamd_upstreams_set_limits (rule->servers, (gdouble) fuzzy_module_ctx->revive_time, NAN, NAN, NAN, (guint) fuzzy_module_ctx->max_errors, NAN);
+ rspamd_upstreams_set_limits (rule->servers,
+ (gdouble) fuzzy_module_ctx->revive_time, NAN, NAN, NAN,
+ (guint) fuzzy_module_ctx->max_errors, 0);
rspamd_mempool_add_destructor (cfg->cfg_pool,
(rspamd_mempool_destruct_t)rspamd_upstreams_destroy,