mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 22:18:00 -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:
parent
894c74738f
commit
ef1a917a11
@ -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…
Reference in New Issue
Block a user