aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-09-10 23:17:06 +0100
committerMatthew Wild <mwild1@gmail.com>2012-09-10 23:17:06 +0100
commit955f9b6e14b048498925a14a3be97adc025f6c2c (patch)
tree6bfc6f9e4c7f37e2bdc3f7dc065baf6eca197257 /plugins/mod_s2s/s2sout.lib.lua
parent3183c8ae099afd35ffc8ac062d2dfc37cdf1abd0 (diff)
parente8dc58ee2d83f8d33ebe45033e581b4d91011db6 (diff)
downloadprosody-955f9b6e14b048498925a14a3be97adc025f6c2c.tar.gz
prosody-955f9b6e14b048498925a14a3be97adc025f6c2c.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_s2s/s2sout.lib.lua')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua
index 17978b39..07623968 100644
--- a/plugins/mod_s2s/s2sout.lib.lua
+++ b/plugins/mod_s2s/s2sout.lib.lua
@@ -94,7 +94,7 @@ function s2sout.attempt_connection(host_session, err)
handle = adns.lookup(function (answer)
handle = nil;
host_session.connecting = nil;
- if answer then
+ if answer and #answer > 0 then
log("debug", "%s has SRV records, handling...", to_host);
local srv_hosts = {};
host_session.srv_hosts = srv_hosts;