Software /
code /
prosody
Comparison
core/stanza_router.lua @ 4867:b4219d987d05
stanza_router: Fix variable name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 12 May 2012 03:24:06 +0100 |
parent | 4864:b98154bbe0e0 |
child | 4877:6f5b53cb3565 |
comparison
equal
deleted
inserted
replaced
4866:d54999db3aa1 | 4867:b4219d987d05 |
---|---|
109 local host_status = origin.hosts[from_host]; | 109 local host_status = origin.hosts[from_host]; |
110 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? | 110 if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? |
111 log("warn", "Received a stanza claiming to be from %s, over a stream authed for %s!", from_host, origin.from_host); | 111 log("warn", "Received a stanza claiming to be from %s, over a stream authed for %s!", from_host, origin.from_host); |
112 origin:close("not-authorized"); | 112 origin:close("not-authorized"); |
113 return; | 113 return; |
114 elseif not hosts[to_host] then | 114 elseif not hosts[host] then |
115 log("warn", "Remote server %s sent us a stanza for %s, closing stream", origin.from_host, to_host); | 115 log("warn", "Remote server %s sent us a stanza for %s, closing stream", origin.from_host, host); |
116 origin:close("host-unknown"); | 116 origin:close("host-unknown"); |
117 return; | 117 return; |
118 end | 118 end |
119 end | 119 end |
120 core_post_stanza(origin, stanza, origin.full_jid); | 120 core_post_stanza(origin, stanza, origin.full_jid); |