]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: don't call stream-close on already closed streams
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Jun 2019 10:30:25 +0000 (12:30 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Jun 2019 22:07:13 +0000 (00:07 +0200)
Closes #4055

lib/http2.c

index 6724eeeb08f3ce782f613313ea632d9a16355af2..b016bac92298ee06e1bae8d5baeac63185e2efde 100644 (file)
@@ -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));