summaryrefslogtreecommitdiff
path: root/lib/http2.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-04-19 13:15:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-04-21 08:20:24 +0200
commit605e8423554e6c53c7755805f18354973b563b16 (patch)
tree76108c07cc201a3941f045a56b155cd0dd0832b4 /lib/http2.h
parent252790c5335a221179dfbacb40e065750bbe7544 (diff)
downloadcurl-605e8423554e6c53c7755805f18354973b563b16.tar.gz
http2: move the stream error field to the per-transfer storage
Storing a stream error in the per-connection struct was an error that lead to race conditions as subsequent stream handling could overwrite the error code before it was used for the stream with the actual problem. Closes #6910
Diffstat (limited to 'lib/http2.h')
-rw-r--r--lib/http2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http2.h b/lib/http2.h
index 114b38271..21e2c086a 100644
--- a/lib/http2.h
+++ b/lib/http2.h
@@ -62,7 +62,7 @@ void Curl_http2_cleanup_dependencies(struct Curl_easy *data);
CURLcode Curl_http2_stream_pause(struct Curl_easy *data, bool pause);
/* returns true if the HTTP/2 stream error was HTTP_1_1_REQUIRED */
-bool Curl_h2_http_1_1_error(struct connectdata *conn);
+bool Curl_h2_http_1_1_error(struct Curl_easy *data);
#else /* USE_NGHTTP2 */
#define Curl_http2_request_upgrade(x,y) CURLE_UNSUPPORTED_PROTOCOL
#define Curl_http2_setup(x,y) CURLE_UNSUPPORTED_PROTOCOL