mirror of
https://github.com/curl/curl.git
synced 2026-04-19 11:01:14 +03: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:
parent
894c74738f
commit
ef1a917a11
1 changed files with 2 additions and 0 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue