aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-19 01:57:13 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-19 01:57:13 +0500
commitb6e1405a9aae4823c02bb2c9b8103f4b7ff3ac7b (patch)
tree4fff7cbe7e987dc1829fde0158bbe45f88e11cca /core/stanza_router.lua
parentd3d9a986ba588bba4f28b856f19f2a75209d3763 (diff)
downloadprosody-b6e1405a9aae4823c02bb2c9b8103f4b7ff3ac7b.tar.gz
prosody-b6e1405a9aae4823c02bb2c9b8103f4b7ff3ac7b.zip
Bounce stanza errors on failed s2s
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 24eadedc..37e8f176 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -86,7 +86,7 @@ function core_process_stanza(origin, stanza)
-- FIXME do stanzas not of jabber:client get handled by components?
if (origin.type == "s2sin" or origin.type == "c2s") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then
- if origin.type == "s2sin" then
+ if origin.type == "s2sin" and not origin.dummy then
local host_status = origin.hosts[from_host];
if not host_status or not host_status.authed then -- remote server trying to impersonate some other server?
log("warn", "Received a stanza claiming to be from %s, over a conn authed for %s!", from_host, origin.from_host);