From: Vsevolod Stakhov Date: Fri, 4 Sep 2020 19:08:23 +0000 (+0100) Subject: [Fix] Fix unused results X-Git-Tag: 2.6~78 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c3c811c76741dfe5c6feef293068eb90fc10bfdf;p=rspamd.git [Fix] Fix unused results --- diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 5c6c682a1..a0498e402 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -545,7 +545,7 @@ void rspamd_config_free (struct rspamd_config *cfg); */ const ucl_object_t *rspamd_config_get_module_opt (struct rspamd_config *cfg, const gchar *module_name, - const gchar *opt_name); + const gchar *opt_name) G_GNUC_WARN_UNUSED_RESULT; /** diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index aa4f4119a..43331d9d9 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -342,7 +342,7 @@ dkim_module_config (struct rspamd_config *cfg) value = rspamd_config_get_module_opt (cfg, "dkim", "check_local"); if (value == NULL) { - rspamd_config_get_module_opt (cfg, "options", "check_local"); + value = rspamd_config_get_module_opt (cfg, "options", "check_local"); } if (value != NULL) { @@ -352,10 +352,12 @@ dkim_module_config (struct rspamd_config *cfg) dkim_module_ctx->check_local = FALSE; } - value = rspamd_config_get_module_opt (cfg, "dkim", "check_authed"); + value = rspamd_config_get_module_opt (cfg, "dkim", + "check_authed"); if (value == NULL) { - rspamd_config_get_module_opt (cfg, "options", "check_authed"); + value = rspamd_config_get_module_opt (cfg, "options", + "check_authed"); } if (value != NULL) {