]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix logic
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 11 Jul 2024 12:47:05 +0000 (13:47 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 11 Jul 2024 13:06:50 +0000 (14:06 +0100)
src/libserver/cfg_utils.cxx

index dd85eddfb1daa582a7597ec255a6bae6972c6494..bcd26d59c4d4c14ea5e84ac95a79806b40e35272 100644 (file)
@@ -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;
                }