commit fb28f40: [Minor] Fix include/exclude mode for get_urls method

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Apr 13 16:07:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-04-13 17:02:54 +0100
URL: https://github.com/rspamd/rspamd/commit/fb28f40700f215b61765b2a2cdaead68b8049a05 (HEAD -> master)

[Minor] Fix include/exclude mode for get_urls method

---
 src/lua/lua_url.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c
index f18792c6c..73aa5ae5f 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -975,7 +975,7 @@ lua_tree_url_callback (gpointer key, gpointer value, gpointer ud)
 			if (url->flags & cb->flags_exclude_mask) {
 				return;
 			}
-			if (url->flags != (url->flags & cb->flags_mask)) {
+			if ((url->flags & cb->flags_mask) != 0) {
 				return;
 			}
 			break;


More information about the Commits mailing list