aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-13 17:14:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-13 17:14:48 +0100
commitf217587d5151f7433a81088372d0d83f7879b6b8 (patch)
treed459c8e47b87d1050b14f4ff9c22fd0257696442 /src
parentfb28f40700f215b61765b2a2cdaead68b8049a05 (diff)
downloadrspamd-f217587d5151f7433a81088372d0d83f7879b6b8.tar.gz
rspamd-f217587d5151f7433a81088372d0d83f7879b6b8.zip
[Minor] Be consistent in the branches of checks
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c
index 73aa5ae5f..c2dade139 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -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;