h3/ngtcp2: close just-opened QUIC stream when submit_request fails

Closes #18904
This commit is contained in:
Joshua Rogers 2025-10-07 13:59:29 +08:00 committed by Daniel Stenberg
parent 4e77388a0b
commit 38ab421f60
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -1607,6 +1607,7 @@ static CURLcode h3_stream_open(struct Curl_cfilter *cf,
"%d (%s)", stream->id, rc, nghttp3_strerror(rc));
break;
}
cf_ngtcp2_stream_close(cf, data, stream);
result = CURLE_SEND_ERROR;
goto out;
}