aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-13 16:14:06 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-13 16:14:06 +0100
commitbd58d2b9315655e1d0d02a47f667937ae0851c82 (patch)
treec533ad453d96bf3bc5ea6ef399d32ff118053dfe
parent125664ba6cf0154c65691441a9fb3b9dc120336d (diff)
downloadrspamd-bd58d2b9315655e1d0d02a47f667937ae0851c82.tar.gz
rspamd-bd58d2b9315655e1d0d02a47f667937ae0851c82.zip
[Minor] Distinguish nil from none
-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 ad938c052..f18792c6c 100644
--- a/src/lua/lua_url.c
+++ b/src/lua/lua_url.c
@@ -1252,7 +1252,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L,
}
}
}
- else if (pos_arg_type == LUA_TNIL) {
+ else if (pos_arg_type == LUA_TNIL || pos_arg_type == LUA_TNONE) {
/* Include all flags */
include_flags_mask = ~0U;
}
@@ -1280,7 +1280,7 @@ lua_url_cbdata_fill_exclude_include (lua_State *L,
}
}
}
- else if (pos_arg_type == LUA_TNIL) {
+ else if (pos_arg_type == LUA_TNIL || pos_arg_type == LUA_TNONE) {
/* Empty all exclude flags */
exclude_flags_mask = 0U;
}