From 0ef29268819b7a6d7c72d8f19bc6ad9e91d9b191 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 9 Jan 2023 09:23:03 +0100 Subject: [PATCH] quiche: fix build without any HTTP/2 implementation Fixes #10260 Closes #10263 --- lib/http.h | 2 +- lib/vquic/curl_quiche.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/http.h b/lib/http.h index 99ec7169e7..9da4694fa3 100644 --- a/lib/http.h +++ b/lib/http.h @@ -239,7 +239,6 @@ struct HTTP { #if defined(USE_NGHTTP2) || defined(USE_NGHTTP3) bool bodystarted; int status_code; /* HTTP status code */ - bool closed; /* TRUE on HTTP2 stream close */ char *mem; /* points to a buffer in memory to store received data */ size_t len; /* size of the buffer 'mem' points to */ size_t memlen; /* size of data copied to mem */ @@ -249,6 +248,7 @@ struct HTTP { const uint8_t *upload_mem; /* points to a buffer to read from */ size_t upload_len; /* size of the buffer 'upload_mem' points to */ curl_off_t upload_left; /* number of bytes left to upload */ + bool closed; /* TRUE on HTTP2 stream close */ #endif #ifdef ENABLE_QUIC diff --git a/lib/vquic/curl_quiche.c b/lib/vquic/curl_quiche.c index 5a9feb9977..48ea4399ad 100644 --- a/lib/vquic/curl_quiche.c +++ b/lib/vquic/curl_quiche.c @@ -464,11 +464,7 @@ static ssize_t cf_quiche_recv(struct Curl_cfilter *cf, struct Curl_easy *data, ssize_t recvd = -1; ssize_t rcode; quiche_h3_event *ev; - struct h3h1header headers; struct HTTP *stream = data->req.p.http; - headers.dest = buf; - headers.destlen = len; - headers.nlen = 0; CF_DEBUGF(infof(data, CFMSG(cf, "recv[%u]"), stream->stream3_id));