From: Stefan Eissing Date: Mon, 9 Jan 2023 08:23:03 +0000 (+0100) Subject: quiche: fix build without any HTTP/2 implementation X-Git-Tag: curl-7_88_0~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ef29268819b7a6d7c72d8f19bc6ad9e91d9b191;p=thirdparty%2Fcurl.git quiche: fix build without any HTTP/2 implementation Fixes #10260 Closes #10263 --- 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));