commit 1b59974: [Minor] NAN is a bad integer...
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Oct 4 14:14:08 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-10-04 13:39:44 +0100
URL: https://github.com/rspamd/rspamd/commit/1b59974e4cfcaf81e5f0a39213ab2589f4618eaf
[Minor] NAN is a bad integer...
---
src/plugins/fuzzy_check.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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,
More information about the Commits
mailing list