]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: (void)-mark when we explicitly ignore the return code
authorDaniel Stenberg <daniel@haxx.se>
Sat, 29 Apr 2023 15:49:12 +0000 (17:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 30 Apr 2023 09:26:07 +0000 (11:26 +0200)
When h2_progress_egress() is called. Pointed out by Coverity.

Closes #11057

lib/http2.c

index 539b1fc815dc467616db1796ba06dc240e4daad4..4db9951331317fd3c187001810c0ef4a4611ab34 100644 (file)
@@ -282,8 +282,8 @@ static void http2_data_done(struct Curl_cfilter *cf,
        * exhausted eventually. */
       nghttp2_session_consume(ctx->h2, stream->id,
                               Curl_bufq_len(&stream->recvbuf));
-      /* give WINDOW_UPATE a chance to be sent */
-      h2_progress_egress(cf, data);
+      /* give WINDOW_UPATE a chance to be sent, but ignore any error */
+      (void)h2_progress_egress(cf, data);
     }
 
     /* -1 means unassigned and 0 means cleared */