diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-05 14:26:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-05 14:26:20 +0100 |
commit | dedb8506630e0de3f384d19c781993dedd73a2d5 (patch) | |
tree | 4855da0433bd019a03c727ad53175bd77745d228 /src/lua/lua_upstream.c | |
parent | a4c9f20fa7f30124253bbcc807eaec9cce65ee48 (diff) | |
download | rspamd-dedb8506630e0de3f384d19c781993dedd73a2d5.tar.gz rspamd-dedb8506630e0de3f384d19c781993dedd73a2d5.zip |
[Feature] Use rspamd specific type checks for userdata
Diffstat (limited to 'src/lua/lua_upstream.c')
-rw-r--r-- | src/lua/lua_upstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_upstream.c b/src/lua/lua_upstream.c index be745206f..fe4697758 100644 --- a/src/lua/lua_upstream.c +++ b/src/lua/lua_upstream.c @@ -90,7 +90,7 @@ static const struct luaL_reg upstream_m[] = { static struct upstream * lua_check_upstream (lua_State * L) { - void *ud = luaL_checkudata (L, 1, "rspamd{upstream}"); + void *ud = rspamd_lua_check_udata (L, 1, "rspamd{upstream}"); luaL_argcheck (L, ud != NULL, 1, "'upstream' expected"); return ud ? *((struct upstream **)ud) : NULL; @@ -153,7 +153,7 @@ lua_upstream_ok (lua_State *L) static struct upstream_list * lua_check_upstream_list (lua_State * L) { - void *ud = luaL_checkudata (L, 1, "rspamd{upstream_list}"); + void *ud = rspamd_lua_check_udata (L, 1, "rspamd{upstream_list}"); luaL_argcheck (L, ud != NULL, 1, "'upstream_list' expected"); return ud ? *((struct upstream_list **)ud) : NULL; |