From 339578344c74f5bb971f4a717dbd1e38e6c30ad8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 16 Sep 2019 16:29:36 +0100 Subject: [PATCH] [Minor] Replace luaL_checkudata --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5