Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
not always zero!
This commit is contained in:
parent
01a79be2c9
commit
ed7bff1fec
@ -1,5 +1,10 @@
|
|||||||
Changelog for the c-ares project
|
Changelog for the c-ares project
|
||||||
|
|
||||||
|
* August 3 2006
|
||||||
|
|
||||||
|
- Ravi Pratap fixed ares_getsock() to actually return the proper bitmap and
|
||||||
|
not always zero!
|
||||||
|
|
||||||
Version 1.3.1 (June 24, 2006)
|
Version 1.3.1 (June 24, 2006)
|
||||||
|
|
||||||
* July 23, 2006
|
* July 23, 2006
|
||||||
|
@ -28,7 +28,6 @@ int ares_getsock(ares_channel channel,
|
|||||||
int numsocks) /* size of the 'socks' array */
|
int numsocks) /* size of the 'socks' array */
|
||||||
{
|
{
|
||||||
struct server_state *server;
|
struct server_state *server;
|
||||||
ares_socket_t nfds;
|
|
||||||
int i;
|
int i;
|
||||||
int sockindex=0;
|
int sockindex=0;
|
||||||
int bitmap = 0;
|
int bitmap = 0;
|
||||||
@ -40,7 +39,6 @@ int ares_getsock(ares_channel channel,
|
|||||||
if (!channel->queries)
|
if (!channel->queries)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
nfds = 0;
|
|
||||||
for (i = 0; i < channel->nservers; i++)
|
for (i = 0; i < channel->nservers; i++)
|
||||||
{
|
{
|
||||||
server = &channel->servers[i];
|
server = &channel->servers[i];
|
||||||
@ -67,5 +65,5 @@ int ares_getsock(ares_channel channel,
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (int)nfds;
|
return bitmap;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user