summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-05-31 15:30:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-05-31 20:41:51 +0200
commitef1a917a1173775d48ebdb425cd680e95abbf9f2 (patch)
treefa2ac483ae851b5a4271c55fe240a39024821aa9 /lib/http2.c
parent894c74738f620fa02d1532c2186c5060fbad7e05 (diff)
downloadcurl-ef1a917a1173775d48ebdb425cd680e95abbf9f2.tar.gz
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
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c
index f194c18b2..f478bfe1c 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"));