From: Daniel Stenberg Date: Thu, 20 Jun 2019 10:30:25 +0000 (+0200) Subject: http2: don't call stream-close on already closed streams X-Git-Tag: curl-7_65_2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c40ab075cdf86424dfe346a70a31b08dc651da;p=thirdparty%2Fcurl.git http2: don't call stream-close on already closed streams Closes #4055 --- diff --git a/lib/http2.c b/lib/http2.c index 6724eeeb08..b016bac922 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1758,11 +1758,10 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex, return retlen; } - /* If stream is closed, return 0 to signal the http routine to close + /* If this stream is closed, return 0 to signal the http routine to close the connection */ - if(stream->closed) { - return http2_handle_stream_close(conn, data, stream, err); - } + if(stream->closed) + return 0; *err = CURLE_AGAIN; H2BUGF(infof(data, "http2_recv returns AGAIN for stream %u\n", stream->stream_id));