mirror of
https://github.com/curl/curl.git
synced 2026-07-31 07:28:06 +03:00
parent
4fc5e7eda5
commit
3c2210713e
2 changed files with 2 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ size_t Curl_hyper_recv(void *userp, hyper_context *ctx,
|
|||
struct connectdata *conn = data->conn;
|
||||
CURLcode result;
|
||||
ssize_t nread;
|
||||
|
||||
DEBUGASSERT(conn);
|
||||
(void)ctx;
|
||||
|
||||
result = Curl_read(data, conn->sockfd, (char *)buf, buflen, &nread);
|
||||
|
|
|
|||
|
|
@ -681,7 +681,7 @@ static CURLcode CONNECT(struct Curl_easy *data,
|
|||
goto error;
|
||||
}
|
||||
/* tell Hyper how to read/write network data */
|
||||
hyper_io_set_userdata(io, conn);
|
||||
hyper_io_set_userdata(io, data);
|
||||
hyper_io_set_read(io, Curl_hyper_recv);
|
||||
hyper_io_set_write(io, Curl_hyper_send);
|
||||
conn->sockfd = tunnelsocket;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue