diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-05-31 15:30:31 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-31 20:41:51 +0200 |
commit | ef1a917a1173775d48ebdb425cd680e95abbf9f2 (patch) | |
tree | fa2ac483ae851b5a4271c55fe240a39024821aa9 /lib/http2.c | |
parent | 894c74738f620fa02d1532c2186c5060fbad7e05 (diff) | |
download | curl-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.c | 2 |
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")); |