From cc6f2f0064b67ca8bfdc5d6f09c9e90e8d07cf6d Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 6 Mar 2024 10:15:15 +0100 Subject: [PATCH] http2: fix push discard - fix logic in discarding a failed pushed stream so that stream context is properly cleaned up Closes #13055 --- lib/http2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/http2.c b/lib/http2.c index cb765b54b5..c63ecd3837 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -839,9 +839,8 @@ fail: static void discard_newhandle(struct Curl_cfilter *cf, struct Curl_easy *newhandle) { - if(!newhandle->req.p.http) { + if(newhandle->req.p.http) { http2_data_done(cf, newhandle, TRUE); - newhandle->req.p.http = NULL; } (void)Curl_close(&newhandle); } -- 2.47.3