aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-05 17:09:24 +0200
committerKim Alvefur <zash@zash.se>2019-10-05 17:09:24 +0200
commitfb13625e08b83f4c1886e90963aeda49137c04ab (patch)
tree8793baf13b65efc8bee74b7a960a59c526a46428 /core
parent2e1a43906f35d4feaa7398eb1f4848fcdda3bd5c (diff)
downloadprosody-fb13625e08b83f4c1886e90963aeda49137c04ab.tar.gz
prosody-fb13625e08b83f4c1886e90963aeda49137c04ab.zip
core.s2smanager: Fix traceback due to mixup with to/from
Forgot to swap to and from in 3123a13cf577
Diffstat (limited to 'core')
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 20b7ffea..7471286c 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -94,7 +94,7 @@ local function destroy_session(session, reason)
session:bounce_sendq(reason);
elseif session.direction == "incoming" then
if session.outgoing then
- hosts[session.from_host].s2sout[session.to_host] = nil;
+ hosts[session.to_host].s2sout[session.from_host] = nil;
end
incoming_s2s[session] = nil;
end