]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix include/exclude mode for get_urls method
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Apr 2021 16:02:54 +0000 (17:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Apr 2021 16:02:54 +0000 (17:02 +0100)
src/lua/lua_url.c

index f18792c6c4547679edadd6ad2bc5ca645925fb8f..73aa5ae5f58b9c572648ee212aec32f5c8b1f03b 100644 (file)
@@ -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;