From: Daniel Stenberg Date: Tue, 7 Feb 2017 08:17:55 +0000 (+0100) Subject: http2: reset push header counter fixes crash X-Git-Tag: curl-7_53_0~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d83612376c976e19ccce4cfe34f6f4eb254c958c;p=curl 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 --- diff --git a/lib/http2.c b/lib/http2.c index 4d108da44..dc7bd32e1 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -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 */