]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Distinguish nil from none
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Apr 2021 15:14:06 +0000 (16:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 13 Apr 2021 15:14:06 +0000 (16:14 +0100)
src/lua/lua_url.c

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