commit c9167ec: [Minor] Lua_mempool: Fix setting buckets of variables
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun May 2 19:35:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-05-02 20:30:01 +0100
URL: https://github.com/rspamd/rspamd/commit/c9167ec1e4c5d72770c2cefb00869fd8a0c14d49 (HEAD -> master)
[Minor] Lua_mempool: Fix setting buckets of variables
Reported by: Steve Sturges
---
src/lua/lua_mempool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
}
}
More information about the Commits
mailing list