From: Vsevolod Stakhov Date: Fri, 19 Dec 2025 12:28:28 +0000 (+0000) Subject: Revert "[Fix] Prevent use-after-free in Redis callbacks after session cleanup" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ce0a58d2b80fa41c8d5a5d2bffa1883cc87bbe7;p=thirdparty%2Frspamd.git Revert "[Fix] Prevent use-after-free in Redis callbacks after session cleanup" This reverts commit 99ba65fc30685e613c138dc1f68acdc51732f86f. --- diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 4f70025472..214f6433ed 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -272,8 +272,6 @@ lua_redis_fin(void *arg) msg_debug_lua_redis("finished redis query %p from session %p; refcount=%d", sp_ud, ctx, ctx->ref.refcount); sp_ud->flags |= LUA_REDIS_SPECIFIC_FINISHED; - /* Prevent callbacks from accessing task data after session cleanup */ - ud->terminated = 1; REDIS_RELEASE(ctx); }