Browse Source

Merge topic 'curl-schannel-ALPN-length'

3faa3d3a38 curl: backport upstream fix to 7.77.0 regression

Acked-by: Kitware Robot <[email protected]>
Merge-request: !6280
Brad King 4 years ago
parent
commit
2c5b758bba
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Utilities/cmcurl/lib/vtls/schannel.c

+ 1 - 0
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);