aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-03 16:24:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-03 16:24:15 +0100
commit813f1f407f639c1f025298abae9fd0295a30d24c (patch)
tree97d62a546789698af9be1d4b6aac1183e4f9efd2 /src/protocol.c
parentf2c442c62951e1441493797268bb36f5da635ee4 (diff)
downloadrspamd-813f1f407f639c1f025298abae9fd0295a30d24c.tar.gz
rspamd-813f1f407f639c1f025298abae9fd0295a30d24c.zip
Fix some warnings that actually are dangerous.
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 151b59a9f..ffc56bde6 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -1141,12 +1141,12 @@ print_metric_data_json (struct worker_task *task, gchar *outbuf, gsize size,
gint r = 0;
gchar *local_act;
- if (task->pre_result.action == METRIC_ACTION_NOACTION) {
- local_act = "False";
- }
- else if (task->pre_result.action <= METRIC_ACTION_SOFT_REJECT) {
+ if (task->pre_result.action <= METRIC_ACTION_SOFT_REJECT) {
local_act = "True";
}
+ else {
+ local_act = "False";
+ }
if (metric_res == NULL) {
/* This is case when we got reject result from pre filters */
r = rspamd_snprintf (outbuf, size,