From: Daniel Stenberg Date: Fri, 3 Jul 2020 22:10:04 +0000 (+0200) Subject: http2: only do the *done() cleanups for HTTP X-Git-Tag: curl-7_72_0~125 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69bfde451597bfede70d1d716584b67ebccbd4f6;p=thirdparty%2Fcurl.git http2: only do the *done() cleanups for HTTP Follow-up to ef86daf4d3 Closes #5650 Fixes #5646 --- diff --git a/lib/http2.c b/lib/http2.c index ea75d7f1f0..e81dc8d013 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1174,7 +1174,8 @@ void Curl_http2_done(struct Curl_easy *data, bool premature) http->push_headers = NULL; } - if(!httpc->h2) /* not HTTP/2 ? */ + if(!(data->conn->handler->protocol&PROTO_FAMILY_HTTP) || + !httpc->h2) /* not HTTP/2 ? */ return; if(premature) {