summaryrefslogtreecommitdiff
path: root/ares_process.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-11-13 14:06:44 +0100
committerYang Tse <yangsita@gmail.com>2010-11-13 14:06:44 +0100
commit4ab5eb6631462fa5e31f47c2044f28cf306e4134 (patch)
tree2e13b01ca3073114e592f484a80377e6caebf1d8 /ares_process.c
parent0b504d7065902b22496b559029fe51dbcddba97f (diff)
downloadc-ares-4ab5eb6631462fa5e31f47c2044f28cf306e4134.tar.gz
c-ares-4ab5eb6631462fa5e31f47c2044f28cf306e4134.tar.bz2
c-ares-4ab5eb6631462fa5e31f47c2044f28cf306e4134.zip
Revert commit 494274e653936335c255a47599970de3df21e7c4
Diffstat (limited to 'ares_process.c')
-rw-r--r--ares_process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_process.c b/ares_process.c
index 083e0ac..c3d7fa4 100644
--- a/ares_process.c
+++ b/ares_process.c
@@ -478,7 +478,7 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds,
else
fromlen = sizeof(from.sa6);
count = (ssize_t)recvfrom(server->udp_socket, (void *)buf, sizeof(buf),
- 0, (void *)&from, &fromlen);
+ 0, (struct sockaddr *)&from, &fromlen);
#else
count = sread(server->udp_socket, buf, sizeof(buf));
#endif
@@ -487,7 +487,7 @@ static void read_udp_packets(ares_channel channel, fd_set *read_fds,
else if (count <= 0)
handle_error(channel, i, now);
#ifdef HAVE_RECVFROM
- else if (!same_address((void *)&from, &server->addr))
+ else if (!same_address((struct sockaddr *)&from, &server->addr))
/* The address the response comes from does not match
* the address we sent the request to. Someone may be
* attempting to perform a cache poisoning attack. */