Software /
code /
prosody
Diff
plugins/mod_s2s/s2sout.lib.lua @ 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 |
parent | 4987:d37f2abac72c |
child | 5351:901ed253bbf7 |
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;