# HG changeset patch # User Matthew Wild # Date 1336789446 -3600 # Node ID b4219d987d053d3e93f78f04865d6f3af1d4a1f0 # Parent d54999db3aa19efa2203b94c107393b7c0ee5959 stanza_router: Fix variable name diff -r d54999db3aa1 -r b4219d987d05 core/stanza_router.lua --- a/core/stanza_router.lua Sat May 12 03:09:52 2012 +0100 +++ b/core/stanza_router.lua Sat May 12 03:24:06 2012 +0100 @@ -111,8 +111,8 @@ 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