aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_expression.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-05 14:26:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-05 14:26:20 +0100
commitdedb8506630e0de3f384d19c781993dedd73a2d5 (patch)
tree4855da0433bd019a03c727ad53175bd77745d228 /src/lua/lua_expression.c
parenta4c9f20fa7f30124253bbcc807eaec9cce65ee48 (diff)
downloadrspamd-dedb8506630e0de3f384d19c781993dedd73a2d5.tar.gz
rspamd-dedb8506630e0de3f384d19c781993dedd73a2d5.zip
[Feature] Use rspamd specific type checks for userdata
Diffstat (limited to 'src/lua/lua_expression.c')
-rw-r--r--src/lua/lua_expression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_expression.c b/src/lua/lua_expression.c
index ac5933993..7bacf5a75 100644
--- a/src/lua/lua_expression.c
+++ b/src/lua/lua_expression.c
@@ -124,7 +124,7 @@ lua_expr_quark (void)
struct lua_expression *
rspamd_lua_expression (lua_State * L, gint pos)
{
- void *ud = luaL_checkudata (L, pos, "rspamd{expr}");
+ void *ud = rspamd_lua_check_udata (L, pos, "rspamd{expr}");
luaL_argcheck (L, ud != NULL, pos, "'expr' expected");
return ud ? *((struct lua_expression **)ud) : NULL;
}