quiche: fix lookup of transfer at multi

- 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
This commit is contained in:
Stefan Eissing 2023-07-18 17:37:58 +02:00 committed by Daniel Stenberg
parent 8edfdf9cf1
commit 3b4ecdd0a8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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;
}
}