]> source.dussan.org Git - rspamd.git/commitdiff
Fix actions output in 'stat' command.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 May 2014 14:27:18 +0000 (15:27 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 May 2014 14:27:18 +0000 (15:27 +0100)
src/controller.c

index 1de31ccfbc6fc7cb13e516543a41b916937d546f..70d7a79194ae004ea0361bd873ce8b9e1ec57213 100644 (file)
@@ -1285,7 +1285,7 @@ rspamd_controller_handle_stat_common (struct rspamd_http_connection_entry *conn_
        if (stat->messages_scanned > 0) {
                sub = ucl_object_typed_new (UCL_OBJECT);
                for (i = METRIC_ACTION_REJECT; i <= METRIC_ACTION_NOACTION; i ++) {
-                       ucl_object_insert_key (top,
+                       ucl_object_insert_key (sub,
                                        ucl_object_fromint (stat->actions_stat[i]),
                                        str_action_metric (i), 0, false);
                        if (i < METRIC_ACTION_GREYLIST) {