aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-16 13:37:51 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-09-16 13:37:51 +0100
commit2cdad98690ea42c0b0322f3de913adfb24332277 (patch)
tree2b711c089c75853ab62de3581f92b27b32ef81ab /src/lua/lua_common.c
parent66fb74246b4b27d65d79e45e0280fe3ab71c0923 (diff)
downloadrspamd-2cdad98690ea42c0b0322f3de913adfb24332277.tar.gz
rspamd-2cdad98690ea42c0b0322f3de913adfb24332277.zip
[Minor] Fix khash set operation
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r--src/lua/lua_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 562adf5d5..bfd572532 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -1248,7 +1248,7 @@ rspamd_lua_check_class (lua_State *L, gint index, const gchar *name)
}
lua_rawgetp (L, LUA_REGISTRYINDEX,
- RSPAMD_LIGHTUSERDATA_MASK (kh_value (lua_classes, k)));
+ RSPAMD_LIGHTUSERDATA_MASK (kh_key (lua_classes, k)));
if (lua_rawequal (L, -1, -2)) { /* does it have the correct mt? */
lua_pop (L, 2); /* remove both metatables */