]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] NAN is a bad integer...
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Oct 2019 12:39:44 +0000 (13:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 4 Oct 2019 12:39:44 +0000 (13:39 +0100)
src/plugins/fuzzy_check.c

index 5f34df4aae1c304680e5e01ddfbc43b03c2f7562..3eed0da51487d1146c53a7c3c9d71ef7d69c1da2 100644 (file)
@@ -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,