mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:13:34 +03:00
openssl-quic: fix shutdown when stream not open
Check that h3 stream had been opened before telling nghttp3 to shut it down. Fixes #16998 Reported-by: Demi Marie Obenour Closes #17003
This commit is contained in:
parent
4a9657a890
commit
219302b4e6
2 changed files with 17 additions and 1 deletions
|
|
@ -654,7 +654,7 @@ static void h3_data_done(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
if(stream) {
|
||||
CURL_TRC_CF(data, cf, "[%"FMT_PRId64"] easy handle is done",
|
||||
stream->s.id);
|
||||
if(ctx->h3.conn && !stream->closed) {
|
||||
if(ctx->h3.conn && (stream->s.id >= 0) && !stream->closed) {
|
||||
nghttp3_conn_shutdown_stream_read(ctx->h3.conn, stream->s.id);
|
||||
nghttp3_conn_close_stream(ctx->h3.conn, stream->s.id,
|
||||
NGHTTP3_H3_REQUEST_CANCELLED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue