diff options
Diffstat (limited to 'ares/ares_getsock.c')
-rw-r--r-- | ares/ares_getsock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_getsock.c b/ares/ares_getsock.c index 01df5d564..99419aee2 100644 --- a/ares/ares_getsock.c +++ b/ares/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; |