From d83612376c976e19ccce4cfe34f6f4eb254c958c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 7 Feb 2017 09:17:55 +0100 Subject: [PATCH] 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 --- lib/http2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http2.c b/lib/http2.c index 4d108da449..dc7bd32e1b 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 */