diff options
author | Kim Alvefur <zash@zash.se> | 2013-03-26 09:25:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-03-26 09:25:20 +0100 |
commit | fee52c734177bb6181fccb286c3d57b1a7437212 (patch) | |
tree | 22cc8803ee1a0f23c8f9cd9def3b773ad3b10df8 /plugins | |
parent | ae5806cd6798cbc1374f4713c42bb003a1f13c3d (diff) | |
download | prosody-fee52c734177bb6181fccb286c3d57b1a7437212.tar.gz prosody-fee52c734177bb6181fccb286c3d57b1a7437212.zip |
mod_s2s: Prevent traceback when replying to incoming connection to a host we don't serve
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index dc4d727d..0d552ce8 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -486,7 +486,7 @@ function session_open_stream(session, from, to) from = from, to = to, } local local_host = session.direction == "outgoing" and from or to; - if not local_host or hosts[local_host].modules.dialback then + if not local_host or (hosts[local_host] and hosts[local_host].modules.dialback) then attr["xmlns:db"] = 'jabber:server:dialback'; end |