summaryrefslogtreecommitdiff
path: root/ares_getsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares_getsock.c')
-rw-r--r--ares_getsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_getsock.c b/ares_getsock.c
index 01df5d5..99419ae 100644
--- a/ares_getsock.c
+++ b/ares_getsock.c
@@ -35,7 +35,7 @@ int ares_getsock(ares_channel channel,
ares_socket_t *socks = (ares_socket_t *)s;
/* No queries, no file descriptors. */
- if (!channel->queries)
+ if (ares__is_list_empty(&(channel->all_queries)))
return 0;
for (i = 0;