commit cdb1167: [Minor] Remove broken check

Vsevolod Stakhov vsevolod at highsecure.ru
Fri May 29 15:35:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-05-29 16:30:02 +0100
URL: https://github.com/rspamd/rspamd/commit/cdb11674cfe59c0bb6d73f45ce71fc3801b58df2 (HEAD -> master)

[Minor] Remove broken check

---
 src/libserver/rspamd_symcache.c | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 624d1c382..375dab54c 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -690,16 +690,10 @@ rspamd_symcache_post_init (struct rspamd_symcache *cache)
 					"%s is missing", ddep->from, ddep->to, ddep->from);
 		}
 		else {
-			if (it->type & (SYMBOL_TYPE_POSTFILTER|SYMBOL_TYPE_IDEMPOTENT|SYMBOL_TYPE_COMPOSITE)) {
-				msg_err_cache ("cannot register delayed dependency between %s and %s: "
-				   "%s is a postfilter", ddep->from, ddep->to, ddep->from);
-			}
-			else {
-				msg_debug_cache ("delayed between %s(%d:%d) -> %s", ddep->from,
-						it->id, vit->id, ddep->to);
-				rspamd_symcache_add_dependency (cache, it->id, ddep->to, vit != it ?
-																		 vit->id : -1);
-			}
+			msg_debug_cache ("delayed between %s(%d:%d) -> %s", ddep->from,
+					it->id, vit->id, ddep->to);
+			rspamd_symcache_add_dependency (cache, it->id, ddep->to, vit != it ?
+																	 vit->id : -1);
 		}
 
 		cur = g_list_next (cur);


More information about the Commits mailing list