]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove assertion as this case can actually happen
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Oct 2018 12:30:22 +0000 (13:30 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 25 Oct 2018 12:30:42 +0000 (13:30 +0100)
src/libserver/symbols_cache.c

index 17fcb192d9a7f70873e713c7256cf2eae08205b7..5584d48cf7228d4bd71f167e76cc0d02557b46ad 100644 (file)
@@ -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);