diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-02-07 09:17:55 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-02-07 09:20:08 +0100 |
commit | d83612376c976e19ccce4cfe34f6f4eb254c958c (patch) | |
tree | 1fc03de43bcadf7383932ba6e1ca75f9bf574271 | |
parent | 6ffe0f5d9670367f128d75c4c68bc427fdc60a5d (diff) |
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
-rw-r--r-- | lib/http2.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |