diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-02 20:30:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-05-02 20:30:01 +0100 |
commit | c9167ec1e4c5d72770c2cefb00869fd8a0c14d49 (patch) | |
tree | 94a6e72ea315dacc0fd4322cacb7fb312c21f364 | |
parent | 3681d040bd87ddbdceccc802ec1d031a7c241d9a (diff) | |
download | rspamd-c9167ec1e4c5d72770c2cefb00869fd8a0c14d49.tar.gz rspamd-c9167ec1e4c5d72770c2cefb00869fd8a0c14d49.zip |
[Minor] Lua_mempool: Fix setting buckets of variables
Reported by: Steve Sturges
-rw-r--r-- | src/lua/lua_mempool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_mempool.c b/src/lua/lua_mempool.c index 5f1fe46b3..356cf571f 100644 --- a/src/lua/lua_mempool.c +++ b/src/lua/lua_mempool.c @@ -488,7 +488,7 @@ lua_mempool_get_variable (lua_State *L) gdouble num; memcpy (&num, pv, sizeof (num)); lua_pushnumber (L, num); - lua_rawseti (L, -1, i + 1); + lua_rawseti (L, -2, i + 1); pv += sizeof (num); } } |