diff options
Diffstat (limited to 'src/lua/lua_session.c')
-rw-r--r-- | src/lua/lua_session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lua/lua_session.c b/src/lua/lua_session.c index 37a41964e..5ccfc76d3 100644 --- a/src/lua/lua_session.c +++ b/src/lua/lua_session.c @@ -157,6 +157,8 @@ lua_session_cleanup (gpointer ud) } } + + static int lua_session_create (lua_State *L) { @@ -207,7 +209,7 @@ lua_session_create (lua_State *L) } session = new_async_session (mempool, lua_session_finalizer, lua_session_restore, lua_session_cleanup, cbdata); cbdata->session = session; - psession = lua_newuserdata (L, sizeof (struct real_name *)); + psession = lua_newuserdata (L, sizeof (struct rspamd_async_session *)); lua_setclass (L, "rspamd{session}", -1); *psession = session; |