Commit 865ddb12 authored by Pekka Pessi's avatar Pekka Pessi

Fixed problem in selecting next server by sres.

darcs-hash:20060410222356-88462-78fea73eb75740d4b30a69e1c0ecd40435c91b61.gz
parent f52d13b9
......@@ -1880,13 +1880,13 @@ sres_server_t *sres_next_server(sres_resolver_t *res,
/* Retry using another server? */
for (j = (i + 1) % N; (j != i); j = (j + 1) % N) {
if (servers[j]->dns_icmp == 0) {
return *in_out_i = j, servers[i];
return *in_out_i = j, servers[j];
}
}
for (j = (i + 1) % N; (j != i); j = (j + 1) % N) {
if (servers[j]->dns_error == 0) {
return *in_out_i = j, servers[i];
return *in_out_i = j, servers[j];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment