diff --git a/lib/c-hyper.c b/lib/c-hyper.c index 7ae2a990c1..8ad1a9c28d 100644 --- a/lib/c-hyper.c +++ b/lib/c-hyper.c @@ -415,8 +415,10 @@ CURLcode Curl_hyper_stream(struct Curl_easy *data, break; } else if(h->endtask == task) { - /* end of transfer */ + /* end of transfer, forget the task handled, we might get a + * new one with the same address in the future. */ *done = TRUE; + h->endtask = NULL; infof(data, "hyperstream is done"); if(!k->bodywrites) { /* hyper doesn't always call the body write callback */