summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-28 16:58:02 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-28 16:59:23 (GMT)
commit3faa3d3a38bb9b7664ae0127028b7bc556b64703 (patch)
tree4b8d19ea6906c1fd2015d0c733dfd7a651cdb3aa /Utilities
parent5694362d98422b455b5c475a1c1f783c61d1221c (diff)
downloadCMake-3faa3d3a38bb9b7664ae0127028b7bc556b64703.zip
CMake-3faa3d3a38bb9b7664ae0127028b7bc556b64703.tar.gz
CMake-3faa3d3a38bb9b7664ae0127028b7bc556b64703.tar.bz2
curl: backport upstream fix to 7.77.0 regression
Backport upstream curl commit `ee97f1769` (schannel: set ALPN length correctly for HTTP/2, 2021-05-26) to get a fix to curl issue 7138, a regression in 7.77.0. Fixes: #22355
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/lib/vtls/schannel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/vtls/schannel.c b/Utilities/cmcurl/lib/vtls/schannel.c
index 2bcf11d..3286a9e 100644
--- a/Utilities/cmcurl/lib/vtls/schannel.c
+++ b/Utilities/cmcurl/lib/vtls/schannel.c
@@ -874,6 +874,7 @@ schannel_connect_step1(struct Curl_easy *data, struct connectdata *conn,
#ifdef USE_HTTP2
if(data->state.httpwant >= CURL_HTTP_VERSION_2) {
+ alpn_buffer[cur++] = ALPN_H2_LENGTH;
memcpy(&alpn_buffer[cur], ALPN_H2, ALPN_H2_LENGTH);
cur += ALPN_H2_LENGTH;
infof(data, "schannel: ALPN, offering %s\n", ALPN_H2);