From 3f3ddee0665176040b3eaf89a912a922726ecb18 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Jan 2023 09:38:11 +0100 Subject: 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 --- lib/http.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/http.h') 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 { -- cgit v1.2.1