aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_init.c')
-rw-r--r--ares/ares_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ares/ares_init.c b/ares/ares_init.c
index c5e35d060..0a33fd924 100644
--- a/ares/ares_init.c
+++ b/ares/ares_init.c
@@ -13,6 +13,7 @@
* without express or implied warranty.
*/
+#include "setup.h"
#include <sys/types.h>
#ifdef WIN32
@@ -127,8 +128,8 @@ int ares_init_options(ares_channel *channelptr, struct ares_options *options,
for (i = 0; i < channel->nservers; i++)
{
server = &channel->servers[i];
- server->udp_socket = -1;
- server->tcp_socket = -1;
+ server->udp_socket = ARES_SOCKET_BAD;
+ server->tcp_socket = ARES_SOCKET_BAD;
server->tcp_lenbuf_pos = 0;
server->tcp_buffer = NULL;
server->qhead = NULL;