diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-01-05 09:38:11 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-01-05 23:43:02 +0100 |
commit | 3f3ddee0665176040b3eaf89a912a922726ecb18 (patch) | |
tree | 01023f36e2b245471228dbc001204432194865a7 /lib/http.h | |
parent | 446267c5559aaf7d3f622dbb15883aeec3bffef9 (diff) | |
download | curl-3f3ddee0665176040b3eaf89a912a922726ecb18.tar.gz |
http_proxy: do not assign data->req.p.http use local copy
Avoid the tricky reusing of the data->req.p.http pointer for http proxy
tunneling.
Fixes #10194
Closes #10234
Diffstat (limited to 'lib/http.h')
-rw-r--r-- | lib/http.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/http.h b/lib/http.h index 8739290d9..99ec7169e 100644 --- a/lib/http.h +++ b/lib/http.h @@ -74,8 +74,10 @@ char *Curl_checkProxyheaders(struct Curl_easy *data, const struct connectdata *conn, const char *thisheader, const size_t thislen); +struct HTTP; /* see below */ CURLcode Curl_buffer_send(struct dynbuf *in, struct Curl_easy *data, + struct HTTP *http, curl_off_t *bytes_written, curl_off_t included_body_bytes, int socketindex); @@ -198,6 +200,7 @@ struct HTTP { void *fread_in; /* backup storage for fread_in pointer */ const char *postdata; curl_off_t postsize; + struct Curl_easy *data; } backup; enum { |