aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-12-29 16:23:08 +0000
committerMatthew Wild <mwild1@gmail.com>2022-12-29 16:23:08 +0000
commit51bf5f2d3414f92b73d54213680c7baac920e04a (patch)
tree9a1bb64164f8bff34ab92b2914e5fb0f3904deb3 /core
parent988990b0b94879bc9c7abf0abcbc2a7ab965f415 (diff)
downloadprosody-51bf5f2d3414f92b73d54213680c7baac920e04a.tar.gz
prosody-51bf5f2d3414f92b73d54213680c7baac920e04a.zip
sessionmanager: Pluck sasl_handler from old session when resuming (fixes #1785)
Diffstat (limited to 'core')
-rw-r--r--core/sessionmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index cdfd040f..138d4e74 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -116,6 +116,7 @@ local function update_session(to_session, from_session)
to_session.filter.session = to_session;
to_session.filters = from_session.filters;
to_session.send.filter = to_session.filter;
+ to_session.sasl_handler = from_session.sasl_handler;
to_session.stream = from_session.stream;
to_session.secure = from_session.secure;
to_session.hibernating = nil;