diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-18 14:13:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-18 14:13:04 +0100 |
commit | 06d1646a6b7dc7a0e2870e4570f9a1100134ad82 (patch) | |
tree | 32d3bc43e59ea662e8f7ff19544ac4fbca130c36 | |
parent | b2ff8ab2a86d0671dcdf591449e7b306ec6e3c36 (diff) | |
download | rspamd-06d1646a6b7dc7a0e2870e4570f9a1100134ad82.tar.gz rspamd-06d1646a6b7dc7a0e2870e4570f9a1100134ad82.zip |
[Minor] Some minor fixes
-rw-r--r-- | src/libutil/map.c | 5 |
1 files 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; |