diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-25 13:30:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-25 13:30:42 +0100 |
commit | e1dba059e14afd5c0995d4fb96a2ac7a284d7c93 (patch) | |
tree | ae38368e2f58eed58b32eb0f259ca4462ae581b7 /src/libserver | |
parent | a22588464ce3dfb1aefed8cd8542700f21efaeb2 (diff) | |
download | rspamd-e1dba059e14afd5c0995d4fb96a2ac7a284d7c93.tar.gz rspamd-e1dba059e14afd5c0995d4fb96a2ac7a284d7c93.zip |
[Minor] Remove assertion as this case can actually happen
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/symbols_cache.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index 17fcb192d..5584d48cf 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -1316,9 +1316,11 @@ rspamd_symbols_cache_check_symbol (struct rspamd_task *task, g_assert (item->func != NULL); if (CHECK_START_BIT (checkpoint, item)) { - msg_err_cache ("critical error: trying to execute already executed symbol %s", - item->symbol); - g_assert_not_reached (); + /* + * This can actually happen when deps span over different layers + */ + + return CHECK_FINISH_BIT (checkpoint, item); } /* Check has been started */ SET_START_BIT (checkpoint, item); |