GHashTableIter it;
struct rspamd_symbols_group *gr;
struct rspamd_symbol_def *sym, *cur;
- ucl_object_t *obj, *top, *sym_obj;
+ ucl_object_t *obj, *top, *sym_obj, *group_symbols;
gpointer k, v;
if (!rspamd_controller_check_password (conn_ent, session, msg, FALSE)) {
/* Iterate through all symbols */
sym = gr->symbols;
+ group_symbols = ucl_object_typed_new (UCL_ARRAY);
+
LL_FOREACH (sym, cur) {
sym_obj = ucl_object_typed_new (UCL_OBJECT);
"description", 0, false);
}
- ucl_object_insert_key (obj, sym_obj, "rules", 0, false);
+ ucl_array_append (group_symbols, sym_obj);
}
+ ucl_object_insert_key (obj, group_symbols, "rules", 0, false);
ucl_array_append (top, obj);
}