]> source.dussan.org Git - rspamd.git/commitdiff
Fix symbols iteration.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 May 2015 14:20:34 +0000 (15:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 May 2015 14:20:34 +0000 (15:20 +0100)
src/controller.c

index 815aa125b80dfda97b753e82ac290980961f1cd5..52a3dd12ac77cf3947e8bc249c48e7cf663bf84d 100644 (file)
@@ -507,14 +507,14 @@ rspamd_controller_handle_symbols (struct rspamd_http_connection_entry *conn_ent,
                LL_FOREACH (sym, cur) {
                        sym_obj = ucl_object_typed_new (UCL_OBJECT);
 
-                       ucl_object_insert_key (sym_obj, ucl_object_fromstring (sym->name),
+                       ucl_object_insert_key (sym_obj, ucl_object_fromstring (cur->name),
                                "symbol", 0, false);
                        ucl_object_insert_key (sym_obj,
-                               ucl_object_fromdouble (*sym->weight_ptr),
+                               ucl_object_fromdouble (*cur->weight_ptr),
                                "weight", 0, false);
-                       if (sym->description) {
+                       if (cur->description) {
                                ucl_object_insert_key (sym_obj,
-                                       ucl_object_fromstring (sym->description),
+                                       ucl_object_fromstring (cur->description),
                                        "description", 0, false);
                        }