aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-07-11 13:47:05 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-07-11 14:06:50 +0100
commit1cc29aa2341dd04ce71912c824c53cc096e9bdba (patch)
tree9d91fb71f6e504f8af076d46a4dddb56df9a9597 /src/libserver
parent03ed47e01a8198f90ee02d468ce9d252737f0e4a (diff)
downloadrspamd-1cc29aa2341dd04ce71912c824c53cc096e9bdba.tar.gz
rspamd-1cc29aa2341dd04ce71912c824c53cc096e9bdba.zip
[Minor] Fix logic
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/cfg_utils.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.cxx b/src/libserver/cfg_utils.cxx
index dd85eddfb..bcd26d59c 100644
--- a/src/libserver/cfg_utils.cxx
+++ b/src/libserver/cfg_utils.cxx
@@ -928,9 +928,9 @@ rspamd_config_post_load(struct rspamd_config *cfg,
if (opts & RSPAMD_CONFIG_INIT_LIBS) {
/* Config other libraries */
- ret = rspamd_config_libs(cfg->libs_ctx, cfg) && ret;
+ auto libs_ret = rspamd_config_libs(cfg->libs_ctx, cfg);
- if (!ret) {
+ if (!libs_ret) {
msg_err_config("cannot configure libraries, fatal error");
return FALSE;
}