]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
h3/ngtcp2: close just-opened QUIC stream when submit_request fails
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Tue, 7 Oct 2025 05:59:29 +0000 (13:59 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Oct 2025 21:59:06 +0000 (23:59 +0200)
Closes #18904

lib/vquic/curl_ngtcp2.c

index 0254f594efcf431f63f97e3f35872316b496f690..68f346af780ae5f0cdd527ba481d8e53c3f95371 100644 (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;
   }