Changeset

5112:8b94a8d92cf3

mod_s2s: Check that an SRV reply isn't empty.
author Kim Alvefur <zash@zash.se>
date Mon, 03 Sep 2012 04:22:40 +0200
parents 5111:7e577727fb9f
children 5113:3393cab2dd6b
files plugins/mod_s2s/s2sout.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;