Преглед изворни кода

* Don't ignore remaining queries if a question had no answers and more answers remain

Bryan Drewery пре 17 година
родитељ
комит
4e650143e8
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/adns.c

+ 3 - 1
src/adns.c

@@ -1022,9 +1022,11 @@ 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 */
-	  q->remaining = 0;	/* Force this query to be removed, any further answers are ignored */
           goto callback;
         }