]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: adapt to changed end of headers callback proto
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Jan 2022 10:23:08 +0000 (11:23 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 24 Jan 2022 12:22:54 +0000 (13:22 +0100)
Closes #8322

lib/vquic/ngtcp2.c

index 49ec37b81ed231bbdedacb00677a566015c64955..81eb0bd0a39859383acf39a06627288cba6c4698 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -1043,7 +1043,7 @@ static int decode_status_code(const uint8_t *value, size_t len)
 }
 
 static int cb_h3_end_headers(nghttp3_conn *conn, int64_t stream_id,
-                             void *user_data, void *stream_user_data)
+                             int fin, void *user_data, void *stream_user_data)
 {
   struct Curl_easy *data = stream_user_data;
   struct HTTP *stream = data->req.p.http;
@@ -1051,6 +1051,7 @@ static int cb_h3_end_headers(nghttp3_conn *conn, int64_t stream_id,
   (void)conn;
   (void)stream_id;
   (void)user_data;
+  (void)fin;
 
   /* add a CRLF only if we've received some headers */
   if(stream->firstheader) {