summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-29 13:20:06 +0000
committerKitware Robot <kwrobot@kitware.com>2021-06-29 09:20:17 -0400
commit4eb78f774ca0be457f960dc061bcee0b941a3deb (patch)
tree9ee9b8c50350dcb6eba884b8d81cb22cd646a63c
parent480bd71b1655e84c1197c6c48bb606c18669548f (diff)
parent3faa3d3a38bb9b7664ae0127028b7bc556b64703 (diff)
downloadcmake-4eb78f774ca0be457f960dc061bcee0b941a3deb.tar.gz
Merge topic 'curl-schannel-ALPN-length' into release-3.21
3faa3d3a38 curl: backport upstream fix to 7.77.0 regression Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6280
-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 2bcf11db25..3286a9e9fc 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);