]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
quiche: fix lookup of transfer at multi
authorStefan Eissing <stefan@eissing.org>
Tue, 18 Jul 2023 15:37:58 +0000 (17:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 19 Jul 2023 07:28:57 +0000 (09:28 +0200)
- refs #11449 where weirdness in quiche multi connection tranfers was
  observed
- fixes lookup of transfer for a quiche event to take the connection
  into account
- formerly, a transfer with the same stream_id, but on another connection
  could be found

Closes #11462

lib/vquic/curl_quiche.c

index 2aa867085de4e13d7ed72005e236b2468ff411c9..3ef1ea19f5499f802881dcf1e6086b2b052d91bb 100644 (file)
@@ -329,7 +329,7 @@ static struct Curl_easy *get_stream_easy(struct Curl_cfilter *cf,
   else {
     DEBUGASSERT(data->multi);
     for(sdata = data->multi->easyp; sdata; sdata = sdata->next) {
-      if(H3_STREAM_ID(sdata) == stream3_id) {
+      if((sdata->conn == data->conn) && H3_STREAM_ID(sdata) == stream3_id) {
         return sdata;
       }
     }