diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-21 19:52:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-21 19:52:01 +0100 |
commit | d68773eabfb004bef9f865975714d3c06a9b972d (patch) | |
tree | 1a62e896c5504619035181b1ba43a8fbe35ab422 /src/lua/lua_url.c | |
parent | 4385e1701570617eda31009299817e0b38a90be5 (diff) | |
download | rspamd-d68773eabfb004bef9f865975714d3c06a9b972d.tar.gz rspamd-d68773eabfb004bef9f865975714d3c06a9b972d.zip |
[Minor] Fix the case of empty flags :(
Diffstat (limited to 'src/lua/lua_url.c')
-rw-r--r-- | src/lua/lua_url.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 45f9ab683..ed1eb1901 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -933,7 +933,8 @@ lua_tree_url_callback (gpointer key, gpointer value, gpointer ud) struct rspamd_url *url = (struct rspamd_url *)value; struct lua_tree_cb_data *cb = ud; - if ((url->protocol & cb->protocols_mask) && (url->flags & cb->flags_mask)) { + if ((url->protocol & cb->protocols_mask) && (url->flags == 0 || + (url->flags & cb->flags_mask))) { if (cb->skip_prob > 0) { gdouble coin = rspamd_random_double_fast_seed (cb->xoroshiro_state); |