@@ -931,6 +931,8 @@ rspamd_symcache_add_symbol (struct rspamd_symcache *cache, | |||
*/ | |||
if (item->type & SYMBOL_TYPE_COMPOSITE) { | |||
item->specific.normal.condition_cb = -1; | |||
item->specific.normal.user_data = user_data; | |||
g_assert (user_data != NULL); | |||
g_ptr_array_add (cache->composites, item); | |||
item->id = cache->items_by_id->len; |
@@ -2431,7 +2431,7 @@ lua_config_add_composite (lua_State * L) | |||
if (new) { | |||
rspamd_symcache_add_symbol (cfg->cache, name, | |||
0, NULL, NULL, SYMBOL_TYPE_COMPOSITE, -1); | |||
0, NULL, composite, SYMBOL_TYPE_COMPOSITE, -1); | |||
} | |||
ret = TRUE; |