From 9ad386f85bd77ee31b70c8bfae89ec6cf69d0b90 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 7 Nov 2022 09:47:10 +0100 Subject: [PATCH] hyper: fix handling of hyper_task's when reusing the same address Fixes #9840 Closes #9860 --- lib/c-hyper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.47.3