From b97e7fc730d0a779676ebd57895971351e8778aa Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 25 Nov 2005 22:23:28 +0000 Subject: read_tcp_data() fix to get the proper buffer pointer and size --- ares/ares_process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ares') diff --git a/ares/ares_process.c b/ares/ares_process.c index 0320fee7a..7662e028b 100644 --- a/ares/ares_process.c +++ b/ares/ares_process.c @@ -213,8 +213,8 @@ static void read_tcp_data(ares_channel channel, fd_set *read_fds, time_t now) * what's left to read of it). */ count = recv(server->tcp_socket, - (void *)(server->tcp_lenbuf + server->tcp_buffer_pos), - 2 - server->tcp_buffer_pos, 0); + (void *)(server->tcp_lenbuf + server->tcp_lenbuf_pos), + 2 - server->tcp_lenbuf_pos, 0); if (count <= 0) { handle_error(channel, i, now); -- cgit v1.2.3