diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-05 14:26:20 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-05 14:26:20 +0100 |
commit | dedb8506630e0de3f384d19c781993dedd73a2d5 (patch) | |
tree | 4855da0433bd019a03c727ad53175bd77745d228 /src/lua/lua_cdb.c | |
parent | a4c9f20fa7f30124253bbcc807eaec9cce65ee48 (diff) | |
download | rspamd-dedb8506630e0de3f384d19c781993dedd73a2d5.tar.gz rspamd-dedb8506630e0de3f384d19c781993dedd73a2d5.zip |
[Feature] Use rspamd specific type checks for userdata
Diffstat (limited to 'src/lua/lua_cdb.c')
-rw-r--r-- | src/lua/lua_cdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_cdb.c b/src/lua/lua_cdb.c index b0e6df32e..a7292da03 100644 --- a/src/lua/lua_cdb.c +++ b/src/lua/lua_cdb.c @@ -38,7 +38,7 @@ static const struct luaL_reg cdblib_f[] = { static struct cdb * lua_check_cdb (lua_State * L) { - void *ud = luaL_checkudata (L, 1, "rspamd{cdb}"); + void *ud = rspamd_lua_check_udata (L, 1, "rspamd{cdb}"); luaL_argcheck (L, ud != NULL, 1, "'cdb' expected"); return ud ? *((struct cdb **)ud) : NULL; |