Commit d8361237 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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: default avatar <zelinchen@users.noreply.github.com>
Fixes #1249
parent 6ffe0f5d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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 */