aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-12 03:24:06 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-12 03:24:06 +0100
commitcb80e7171f5ad3248cba3084e914b972a2415f01 (patch)
tree421964fa3ba82964a4cd899ecb44bb30f047d11d /core/stanza_router.lua
parent6206f46784e88e648029af68e2dd496ce7715c98 (diff)
downloadprosody-cb80e7171f5ad3248cba3084e914b972a2415f01.tar.gz
prosody-cb80e7171f5ad3248cba3084e914b972a2415f01.zip
stanza_router: Fix variable name
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 1a3d1322..50044766 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -111,8 +111,8 @@ function core_process_stanza(origin, stanza)
log("warn", "Received a stanza claiming to be from %s, over a stream authed for %s!", from_host, origin.from_host);
origin:close("not-authorized");
return;
- elseif not hosts[to_host] then
- log("warn", "Remote server %s sent us a stanza for %s, closing stream", origin.from_host, to_host);
+ elseif not hosts[host] then
+ log("warn", "Remote server %s sent us a stanza for %s, closing stream", origin.from_host, host);
origin:close("host-unknown");
return;
end