From: Vsevolod Stakhov Date: Wed, 18 Jul 2018 13:13:04 +0000 (+0100) Subject: [Minor] Some minor fixes X-Git-Tag: 1.7.9~96 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=06d1646a6b7dc7a0e2870e4570f9a1100134ad82;p=rspamd.git [Minor] Some minor fixes --- 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;