From 2ce293161625f929220195ef6ad5b7804dfd2332 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 15 May 2015 15:20:34 +0100 Subject: [PATCH] Fix symbols iteration. --- src/controller.c | 8 ++++---- 1 file 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); } -- 2.39.5