summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-16 16:29:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-16 16:29:36 +0100
commit339578344c74f5bb971f4a717dbd1e38e6c30ad8 (patch)
treea60f356c4ec495c90fa00ae8c5ddbd7041a7fa73
parent5995e6b8dba5bbe338999419fa232fe664f27ecb (diff)
downloadrspamd-339578344c74f5bb971f4a717dbd1e38e6c30ad8.tar.gz
rspamd-339578344c74f5bb971f4a717dbd1e38e6c30ad8.zip
[Minor] Replace luaL_checkudata
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controller.c b/src/controller.c
index 450c730dc..2f76bcc69 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -3471,7 +3471,7 @@ luaopen_controller (lua_State * L)
struct rspamd_http_connection_entry *
lua_check_controller_entry (lua_State * L, gint pos)
{
- void *ud = luaL_checkudata (L, pos, "rspamd{csession}");
+ void *ud = rspamd_lua_check_udata (L, pos, "rspamd{csession}");
luaL_argcheck (L, ud != NULL, pos, "'csession' expected");
return ud ? *((struct rspamd_http_connection_entry **)ud) : NULL;
}