1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 06:19:34 +00:00

Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and

not always zero!
This commit is contained in:
Daniel Stenberg
2006-08-03 18:20:45 +00:00
parent 6ca041f8f1
commit 19fb255f9e
2 changed files with 6 additions and 3 deletions

View File

@ -28,7 +28,6 @@ int ares_getsock(ares_channel channel,
int numsocks) /* size of the 'socks' array */
{
struct server_state *server;
ares_socket_t nfds;
int i;
int sockindex=0;
int bitmap = 0;
@ -40,7 +39,6 @@ int ares_getsock(ares_channel channel,
if (!channel->queries)
return 0;
nfds = 0;
for (i = 0; i < channel->nservers; i++)
{
server = &channel->servers[i];
@ -67,5 +65,5 @@ int ares_getsock(ares_channel channel,
}
}
return (int)nfds;
return bitmap;
}