Skip to content

Commit

Permalink
[Minor] Replace luaL_checkudata
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Sep 16, 2019
1 parent 5995e6b commit 3395783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3395783

Please sign in to comment.