# HG changeset patch # User Matthew Wild # Date 1259119841 0 # Node ID fb01f090656497677503af10697e6e98d259d6ca # Parent 339a96689dcb4ab53f6082621f3017dea5b69650# Parent 529af807ba1af533385736b60c383c0bca83bd41 Merge with 0.6 diff -r 339a96689dcb -r fb01f0906564 core/s2smanager.lua --- a/core/s2smanager.lua Tue Nov 24 20:35:18 2009 +0000 +++ b/core/s2smanager.lua Wed Nov 25 03:30:41 2009 +0000 @@ -79,6 +79,10 @@ end function send_to_host(from_host, to_host, data) + if not hosts[from_host] then + log("warn", "Attempt to send stanza from %s - a host we don't serve", from_host); + return false; + end local host = hosts[from_host].s2sout[to_host]; if host then -- We have a connection to this host already