# HG changeset patch # User Kim Alvefur # Date 1346638960 -7200 # Node ID 8b94a8d92cf3461e49f46cbce5d20d65d309b7f7 # Parent 7e577727fb9f4c6e4c7c55c1a5956c3ac9f7ccd1 mod_s2s: Check that an SRV reply isn't empty. diff -r 7e577727fb9f -r 8b94a8d92cf3 plugins/mod_s2s/s2sout.lib.lua --- a/plugins/mod_s2s/s2sout.lib.lua Fri Aug 31 17:31:35 2012 +0200 +++ b/plugins/mod_s2s/s2sout.lib.lua Mon Sep 03 04:22:40 2012 +0200 @@ -94,7 +94,7 @@ 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;