From: Vsevolod Stakhov Date: Tue, 7 Feb 2017 12:39:29 +0000 (+0000) Subject: [Fix] Fix dependencies tracking for callback symbols X-Git-Tag: 1.5.0~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7c19f4abcc29032f2a60f367c4953fb20322352;p=thirdparty%2Frspamd.git [Fix] Fix dependencies tracking for callback symbols --- diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index f965798f54..872b4dd6d3 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -776,7 +776,7 @@ rspamd_symbols_cache_add_symbol (struct symbols_cache *cache, rspamd_mempool_add_destructor (cache->static_pool, rspamd_ptr_array_free_hard, item->rdeps); - if (name != NULL && type != SYMBOL_TYPE_CALLBACK) { + if (name != NULL) { g_hash_table_insert (cache->items_by_symbol, item->symbol, item); } @@ -1302,8 +1302,8 @@ rspamd_symbols_cache_check_symbol (struct rspamd_task *task, rspamd_set_counter (item->cd, diff); } - rspamd_session_watch_stop (task->s); pending_after = rspamd_session_events_pending (task->s); + rspamd_session_watch_stop (task->s); if (pending_before == pending_after) { /* No new events registered */