Prechádzať zdrojové kódy

* Don't fail a server if it sends no answers

This could simply be that there are no answers... query A or AAAA and receive nothing back...
With the new NXDOMAIN / SERVFAIL error checks, this hard error of jumping servers is probably
no longer needed, as there is always a good reason for not getting answers back.

If the server has a permanent error, it lets us know now.
Bryan Drewery 17 rokov pred
rodič
commit
57364e69f2
1 zmenil súbory, kde vykonal 0 pridanie a 9 odobranie
  1. 0 9
      src/adns.c

+ 0 - 9
src/adns.c

@@ -1028,15 +1028,6 @@ static int parse_reply(char *response, size_t nbytes, const char* server_ip)
                 }
 	}
 
-        if (q->answer.len == 0) {
-          /* This could simply be that there are no answers... query A or AAAA and receive nothing back...
-           * With the new NXDOMAIN / SERVFAIL error checks, this hard error of jumping servers is probably
-           * no longer needed */
-          sdprintf("Failed to get any answers for query");
-          return_code = 1;	/* get a new server */
-          goto callback;
-        }
-
 callback:
 	/* Don't continue if we haven't gotten all expected replies. */
 	if (--q->remaining > 0) return 0;