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) {