From: Daniel Stenberg Date: Mon, 31 May 2021 13:30:31 +0000 (+0200) Subject: http2: init recvbuf struct for pushed streams X-Git-Tag: curl-7_78_0~238 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef1a917a1173775d48ebdb425cd680e95abbf9f2;p=thirdparty%2Fcurl.git http2: init recvbuf struct for pushed streams Debug builds would warn that these structs were not initialized properly for pushed streams. Ref: #7148 Closes #7153 --- diff --git a/lib/http2.c b/lib/http2.c index f194c18b23..f478bfe1cb 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -638,6 +638,8 @@ static int push_promise(struct Curl_easy *data, rv = CURL_PUSH_DENY; goto fail; } + Curl_dyn_init(&newstream->header_recvbuf, DYN_H2_HEADERS); + Curl_dyn_init(&newstream->trailer_recvbuf, DYN_H2_TRAILERS); } else { H2BUGF(infof(data, "Got PUSH_PROMISE, ignore it!\n"));