From da18622846fc28ac0746e44b6e39f75245f6f45f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 13 Dec 2021 21:46:49 +0100 Subject: mod_smacks: Patch various self-references on the resumed session The number of places where the session is an upvalue to its own methods is too high! --- plugins/mod_smacks.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 104b75af..15eacae2 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -571,11 +571,16 @@ function handle_resume(session, stanza, xmlns_sm) local migrated_session_log = session.log; original_session.ip = session.ip; original_session.conn = session.conn; + original_session.rawsend = session.rawsend; + original_session.rawsend.session = original_session; + original_session.rawsend.conn = original_session.conn; original_session.send = session.send; + original_session.send.session = original_session; original_session.close = session.close; original_session.filter = session.filter; original_session.filter.session = original_session; original_session.filters = session.filters; + original_session.send.filter = original_session.filter; original_session.stream = session.stream; original_session.secure = session.secure; original_session.hibernating = nil; -- cgit v1.2.3