From 06d1646a6b7dc7a0e2870e4570f9a1100134ad82 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 18 Jul 2018 14:13:04 +0100 Subject: [PATCH] [Minor] Some minor fixes --- src/libutil/map.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libutil/map.c b/src/libutil/map.c index 39f889f7a..d0fb9ff9e 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1922,7 +1922,8 @@ rspamd_map_watch (struct rspamd_config *cfg, if (map->poll_timeout >= cfg->map_timeout && cfg->map_file_watch_multiplier < 1.0) { - map->poll_timeout = map->poll_timeout * cfg->map_file_watch_multiplier; + map->poll_timeout = + map->poll_timeout * cfg->map_file_watch_multiplier; } } @@ -2290,7 +2291,7 @@ rspamd_map_parse_backend (struct rspamd_config *cfg, const gchar *map_line) goto err; } - if (!bk->is_fallback && bk->protocol != MAP_PROTO_FILE) { + if (bk->is_fallback && bk->protocol != MAP_PROTO_FILE) { msg_err_config ("fallback backend must be file for %s", bk->uri); goto err; -- 2.39.5