aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-02 17:22:23 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-02 17:22:23 +0100
commite3fa34385a62ab5c71f740d999c9ec38cc3e5429 (patch)
tree8d1f696315bf22f2959fd12bd3df3611189e0319
parent5c26995dfa7270b1c3b2c3f849f2c8d9b51315f9 (diff)
downloadprosody-e3fa34385a62ab5c71f740d999c9ec38cc3e5429.tar.gz
prosody-e3fa34385a62ab5c71f740d999c9ec38cc3e5429.zip
s2smanager: Don't attempt to connect to a nil host (for whatever reason... invalid DNS record perhaps?) (thanks dersd)
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 03e4ff87..0c29da14 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -193,7 +193,7 @@ end
function attempt_connection(host_session, err)
local from_host, to_host = host_session.from_host, host_session.to_host;
- local connect_host, connect_port = idna_to_ascii(to_host), 5269;
+ local connect_host, connect_port = to_host and idna_to_ascii(to_host), 5269;
if not connect_host then
return false;