diff options
author | Kim Alvefur <zash@zash.se> | 2012-09-03 04:22:40 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-09-03 04:22:40 +0200 |
commit | 9b435d76fbbe2f6a516ac1e402f2830597cf62bd (patch) | |
tree | 10edea04f4b24c8d22fa5ca05aa4c22b01a0d53a | |
parent | c57bd063eadea772e61c23a4485df99c8fa24aa7 (diff) | |
download | prosody-9b435d76fbbe2f6a516ac1e402f2830597cf62bd.tar.gz prosody-9b435d76fbbe2f6a516ac1e402f2830597cf62bd.zip |
mod_s2s: Check that an SRV reply isn't empty.
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 2 |
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; |