]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ngtcp2: Fix build error due to change in nghttp3 prototypes
authorJay Satiro <raysatiro@yahoo.com>
Mon, 25 Jul 2022 17:53:39 +0000 (13:53 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 26 Jul 2022 17:23:56 +0000 (13:23 -0400)
ngtcp2/nghttp3@4a066b2 changed nghttp3_conn_block_stream and
nghttp3_conn_shutdown_stream_write return from int to void.

Reported-by: jurisuk@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/9204
Closes https://github.com/curl/curl/pull/9200

lib/vquic/ngtcp2.c

index 6b3332d53b02ae8d858338d674899c17d06d591a..16d203bbebe1330891013b4a90bed3ef3058587a 100644 (file)
@@ -1939,22 +1939,11 @@ static CURLcode ng_flush_egress(struct Curl_easy *data,
       switch(outlen) {
       case NGTCP2_ERR_STREAM_DATA_BLOCKED:
         assert(ndatalen == -1);
-        rv = nghttp3_conn_block_stream(qs->h3conn, stream_id);
-        if(rv) {
-          failf(data, "nghttp3_conn_block_stream returned error: %s\n",
-                nghttp3_strerror(rv));
-          return CURLE_SEND_ERROR;
-        }
+        nghttp3_conn_block_stream(qs->h3conn, stream_id);
         continue;
       case NGTCP2_ERR_STREAM_SHUT_WR:
         assert(ndatalen == -1);
-        rv = nghttp3_conn_shutdown_stream_write(qs->h3conn, stream_id);
-        if(rv) {
-          failf(data,
-                "nghttp3_conn_shutdown_stream_write returned error: %s\n",
-                nghttp3_strerror(rv));
-          return CURLE_SEND_ERROR;
-        }
+        nghttp3_conn_shutdown_stream_write(qs->h3conn, stream_id);
         continue;
       case NGTCP2_ERR_WRITE_MORE:
         assert(ndatalen >= 0);