From: Stefan Eissing Date: Wed, 6 Mar 2024 09:15:15 +0000 (+0100) Subject: http2: fix push discard X-Git-Tag: curl-8_7_0~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc6f2f0064b67ca8bfdc5d6f09c9e90e8d07cf6d;p=thirdparty%2Fcurl.git http2: fix push discard - fix logic in discarding a failed pushed stream so that stream context is properly cleaned up Closes #13055 --- 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); }