http2: fix push discard
- fix logic in discarding a failed pushed stream so that stream context is properly cleaned up Closes #13055
This commit is contained in:
parent
db5c9f4f9e
commit
cc6f2f0064
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user