From ddd751aed9e8fd6ff3fdecc8081c639b7a11cf30 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 3 Sep 2012 04:22:40 +0200 Subject: mod_s2s: Check that an SRV reply isn't empty. --- plugins/mod_s2s/s2sout.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_s2s') 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; -- cgit v1.2.3