From 393e75930b2d25806f9e834d9d3f53dfc9f5a71e Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Thu, 16 Jun 2011 20:26:34 +0200 Subject: [PATCH] Catch the case where the domain exists, but SRV records don't --- src/XMPPSRVLookup.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/XMPPSRVLookup.m b/src/XMPPSRVLookup.m index b97e32f..132b11d 100644 --- a/src/XMPPSRVLookup.m +++ b/src/XMPPSRVLookup.m @@ -216,7 +216,8 @@ answerLen = res_nsearch(&resState, [request cString], ns_c_in, ns_t_srv, answer, (int)of_pagesize); - if ((answerLen == -1) && (h_errno == HOST_NOT_FOUND)) + if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) || + (h_errno == NO_DATA))) return; if (answerLen < 1 || answerLen > of_pagesize) {