From: Vsevolod Stakhov Date: Fri, 15 May 2015 14:20:34 +0000 (+0100) Subject: Fix symbols iteration. X-Git-Tag: 0.9.1~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2ce293161625f929220195ef6ad5b7804dfd2332;p=rspamd.git Fix symbols iteration. --- 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); }