commit 3395783: [Minor] Replace luaL_checkudata
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 16 15:35:10 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-16 16:29:36 +0100
URL: https://github.com/rspamd/rspamd/commit/339578344c74f5bb971f4a717dbd1e38e6c30ad8 (HEAD -> master)
[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;
}
More information about the Commits
mailing list