diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/fuzzy_check.c | 8 | ||||
-rw-r--r-- | src/plugins/spf.c | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 987a2cb40..40b1aaa79 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -490,7 +490,7 @@ fuzzy_controller_handler (char **args, struct controller_session *session, int c { char *arg, out_buf[BUFSIZ], *err_str; uint32_t size; - int r, value, *sargs; + int r, value = 1, *sargs; /* Process size */ arg = args[0]; @@ -510,11 +510,7 @@ fuzzy_controller_handler (char **args, struct controller_session *session, int c } /* Process value */ arg = args[1]; - if (!arg || *arg == '\0') { - msg_info ("empty value, assume it 1"); - value = 1; - } - else { + if (arg && *arg != '\0') { value = strtol (arg, &err_str, 10); } diff --git a/src/plugins/spf.c b/src/plugins/spf.c index ae762f12a..57a6f4407 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -155,13 +155,16 @@ spf_plugin_callback (struct spf_record *record, struct worker_task *task) switch (addr->mech) { case SPF_FAIL: insert_result (task, spf_module_ctx->metric, spf_module_ctx->symbol_fail, 1, g_list_prepend (NULL, addr->spf_string)); + task->messages = g_list_prepend (task->messages, "(SPF): spf fail"); break; case SPF_SOFT_FAIL: case SPF_NEUTRAL: insert_result (task, spf_module_ctx->metric, spf_module_ctx->symbol_softfail, 1, g_list_prepend (NULL, addr->spf_string)); + task->messages = g_list_prepend (task->messages, "(SPF): spf softfail"); break; default: insert_result (task, spf_module_ctx->metric, spf_module_ctx->symbol_allow, 1, g_list_prepend (NULL, addr->spf_string)); + task->messages = g_list_prepend (task->messages, "(SPF): spf allow"); break; } /* Stop parsing */ |