aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-15 15:20:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-15 15:20:34 +0100
commit2ce293161625f929220195ef6ad5b7804dfd2332 (patch)
tree4bdd492b062e755fe322594bafbe126b018881cd /src/controller.c
parent0b1e08c225151591b0e7ea44c1aa64646b2c8e93 (diff)
downloadrspamd-2ce293161625f929220195ef6ad5b7804dfd2332.tar.gz
rspamd-2ce293161625f929220195ef6ad5b7804dfd2332.zip
Fix symbols iteration.
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/controller.c b/src/controller.c
index 815aa125b..52a3dd12a 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -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);
}