1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-12 06:28:04 -05:00

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
This commit is contained in:
Daniel Stenberg 2021-05-31 15:30:31 +02:00
parent 894c74738f
commit ef1a917a11
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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"));