]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
hyper: fix handling of hyper_task's when reusing the same address
authorStefan Eissing <stefan@eissing.org>
Mon, 7 Nov 2022 08:47:10 +0000 (09:47 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 7 Nov 2022 11:19:36 +0000 (12:19 +0100)
Fixes #9840
Closes #9860

lib/c-hyper.c

index 7ae2a990c11bbe15c176c3c2fc9469cb51487e7a..8ad1a9c28dfd93864251e3b7445fe4f6bbbf513c 100644 (file)
@@ -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 */