aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-02 20:30:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-02 20:30:01 +0100
commitc9167ec1e4c5d72770c2cefb00869fd8a0c14d49 (patch)
tree94a6e72ea315dacc0fd4322cacb7fb312c21f364 /src
parent3681d040bd87ddbdceccc802ec1d031a7c241d9a (diff)
downloadrspamd-c9167ec1e4c5d72770c2cefb00869fd8a0c14d49.tar.gz
rspamd-c9167ec1e4c5d72770c2cefb00869fd8a0c14d49.zip
[Minor] Lua_mempool: Fix setting buckets of variables
Reported by: Steve Sturges
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_mempool.c2
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);
}
}