From e416e2948b5433251e8939f65f57734bfd4d07bf Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 26 Jul 2026 16:27:34 +0200 Subject: [PATCH] vquic: initialize new callback slot for nghttp3 v1.18.0+ Closes #22399 --- lib/vquic/cf-ngtcp2-proxy.c | 3 +++ lib/vquic/cf-ngtcp2.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/vquic/cf-ngtcp2-proxy.c b/lib/vquic/cf-ngtcp2-proxy.c index 3a7023f300..2592b05dab 100644 --- a/lib/vquic/cf-ngtcp2-proxy.c +++ b/lib/vquic/cf-ngtcp2-proxy.c @@ -625,6 +625,9 @@ static nghttp3_callbacks ngh3_proxy_callbacks = { #ifdef NGHTTP3_CALLBACKS_V3 /* nghttp3 v1.14.0+ */ NULL, /* recv_settings2 */ #endif +#ifdef NGHTTP3_CALLBACKS_V4 /* nghttp3 v1.18.0+ */ + NULL, /* stream_close2 */ +#endif }; static CURLcode cf_ngtcp2_proxy_h3_init(struct Curl_cfilter *cf, diff --git a/lib/vquic/cf-ngtcp2.c b/lib/vquic/cf-ngtcp2.c index 980516d05e..9a2b64f235 100644 --- a/lib/vquic/cf-ngtcp2.c +++ b/lib/vquic/cf-ngtcp2.c @@ -410,6 +410,9 @@ static nghttp3_callbacks ngh3_callbacks = { #ifdef NGHTTP3_CALLBACKS_V3 /* nghttp3 v1.14.0+ */ NULL, /* recv_settings2 */ #endif +#ifdef NGHTTP3_CALLBACKS_V4 /* nghttp3 v1.18.0+ */ + NULL, /* stream_close2 */ +#endif }; static CURLcode init_ngh3_conn(struct Curl_cfilter *cf,