diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-04 20:08:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-09-04 20:08:23 +0100 |
commit | c3c811c76741dfe5c6feef293068eb90fc10bfdf (patch) | |
tree | ebd060b8d5e845f00ba90afbcc7ab6bd976cdeb1 | |
parent | cef15f3b642e13ebe30d3e586154c82f22d91236 (diff) | |
download | rspamd-c3c811c76741dfe5c6feef293068eb90fc10bfdf.tar.gz rspamd-c3c811c76741dfe5c6feef293068eb90fc10bfdf.zip |
[Fix] Fix unused results
-rw-r--r-- | src/libserver/cfg_file.h | 2 | ||||
-rw-r--r-- | src/plugins/dkim_check.c | 8 |
2 files changed, 6 insertions, 4 deletions
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) { |