mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
http2: reset push header counter fixes crash
When removing an easy handler from a multi before it completed its transfer, and it had pushed streams, it would segfault due to the pushed counted not being cleared. Fixed-by: zelinchen@users.noreply.github.com Fixes #1249
This commit is contained in:
parent
6ffe0f5d96
commit
d83612376c
@ -415,6 +415,7 @@ static int push_promise(struct Curl_easy *data,
|
||||
free(stream->push_headers[i]);
|
||||
free(stream->push_headers);
|
||||
stream->push_headers = NULL;
|
||||
stream->push_headers_used = 0;
|
||||
|
||||
if(rv) {
|
||||
/* denied, kill off the new handle again */
|
||||
|
Loading…
Reference in New Issue
Block a user