aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-03 17:29:43 +0100
committerKim Alvefur <zash@zash.se>2019-12-03 17:29:43 +0100
commit9f46aa4d48b2d43b1529f980dda2439e865cd908 (patch)
tree463196bdcc1e31af9bb1363ae4a232830b8eae9c /plugins/mod_s2s
parent4053cdb8483f896e9d36d360e4df9735b9ea00ad (diff)
downloadprosody-9f46aa4d48b2d43b1529f980dda2439e865cd908.tar.gz
prosody-9f46aa4d48b2d43b1529f980dda2439e865cd908.zip
mod_s2s: Fix mistake in 28755107c2f4
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index a3eec9f9..8663702f 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -516,6 +516,7 @@ local function session_close(session, reason, remote_reason, bounce_reason)
if reason.extra then
stanza:add_child(reason.extra);
end
+ reason = stanza;
end
if st.is_stanza(reason) then
-- to and from are never unknown on outgoing connections