# HG changeset patch # User Kim Alvefur # Date 1364286320 -3600 # Node ID d147a4227a7285f61fec73004c9e53746c5dbb35 # Parent f833d2188c16f7ce54379cd79a35c4a11b4fbb0b mod_s2s: Prevent traceback when replying to incoming connection to a host we don't serve diff -r f833d2188c16 -r d147a4227a72 plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Mon Mar 25 19:08:15 2013 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Tue Mar 26 09:25:20 2013 +0100 @@ -486,7 +486,7 @@ 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