aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-24 11:59:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-24 11:59:40 +0000
commitcfdf17ea1a26abce66d11319a02faaa33132cf9e (patch)
tree43e500a7a2837d3a02d779c7ca244b3d50ae0d6b /src/lua
parente0e0d361a445a4f5cca9bdc77a23dbdfe75bebed (diff)
downloadrspamd-cfdf17ea1a26abce66d11319a02faaa33132cf9e.tar.gz
rspamd-cfdf17ea1a26abce66d11319a02faaa33132cf9e.zip
[Fix] Avoid collisions in mempool variables by changing fuzzy caching logic
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_mimepart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index 81e8bed59..76e43b4c5 100644
--- a/src/lua/lua_mimepart.c
+++ b/src/lua/lua_mimepart.c
@@ -1962,7 +1962,7 @@ lua_mimepart_get_id (lua_State * L)
return luaL_error (L, "invalid arguments");
}
- lua_pushinteger (L, part->id);
+ lua_pushinteger (L, part->part_number);
return 1;
}