mirror of
https://github.com/curl/curl.git
synced 2026-06-19 17:15:38 +03:00
read_tcp_data() fix to get the proper buffer pointer and size
This commit is contained in:
parent
01cbf08064
commit
b97e7fc730
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue