]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Be consistent in the branches of checks
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Apr 2021 16:14:48 +0000 (17:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Apr 2021 16:14:48 +0000 (17:14 +0100)
src/lua/lua_url.c

index 73aa5ae5f58b9c572648ee212aec32f5c8b1f03b..c2dade139d40c6ddc1b1d66e947c1f044c132ddd 100644 (file)
@@ -972,10 +972,10 @@ lua_tree_url_callback (gpointer key, gpointer value, gpointer ud)
                        }
                        break;
                case url_flags_mode_exclude_include:
-                       if (url->flags & cb->flags_exclude_mask) {
+                       if ((url->flags & cb->flags_exclude_mask) != 0) {
                                return;
                        }
-                       if ((url->flags & cb->flags_mask) != 0) {
+                       if ((url->flags & cb->flags_mask) == 0) {
                                return;
                        }
                        break;