aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
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,