diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-11-25 22:23:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-25 22:23:28 +0000 |
commit | 006698a1ed8fe67ae75f073a119f429cd928f114 (patch) | |
tree | 07f34cb0d6e7ed3d5fb378d0f48abcd1403c9464 /ares_process.c | |
parent | c24e66c05707a0d10438999a8d3c3350d583f0cf (diff) | |
download | c-ares-006698a1ed8fe67ae75f073a119f429cd928f114.tar.gz c-ares-006698a1ed8fe67ae75f073a119f429cd928f114.tar.bz2 c-ares-006698a1ed8fe67ae75f073a119f429cd928f114.zip |
read_tcp_data() fix to get the proper buffer pointer and size
Diffstat (limited to 'ares_process.c')
-rw-r--r-- | ares_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ares_process.c b/ares_process.c index 0320fee..7662e02 100644 --- a/ares_process.c +++ b/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); |