From: Stefan Eissing Date: Mon, 7 Nov 2022 08:47:10 +0000 (+0100) Subject: hyper: fix handling of hyper_task's when reusing the same address X-Git-Tag: curl-7_87_0~200 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ad386f85bd77ee31b70c8bfae89ec6cf69d0b90;p=thirdparty%2Fcurl.git hyper: fix handling of hyper_task's when reusing the same address Fixes #9840 Closes #9860 --- 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 */