From c9948e519b934c6d587cf413b1d7c41f46375dee Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 19 Aug 2015 14:14:25 +0100 Subject: [PATCH] Ignore broken dependencies. --- src/libserver/symbols_cache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 975535c4c7..8bb3a2dad9 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -920,7 +920,10 @@ rspamd_symbols_cache_check_deps (struct rspamd_task *task, for (i = 0; i < item->deps->len; i ++) { dep = g_ptr_array_index (item->deps, i); - g_assert (dep->item != NULL); + if (dep->item == NULL) { + /* Assume invalid deps as done */ + continue; + } if (!isset (checkpoint->processed_bits, dep->id * 2 + 1)) { if (!isset (checkpoint->processed_bits, dep->id * 2)) { -- 2.47.3