Catch the case where the domain exists, but SRV records don't

This commit is contained in:
Florian Zeitz 2011-06-16 20:26:34 +02:00
parent 825ee7c81f
commit 393e75930b

View file

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