]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: mux-quic: remove dead err label in qcc_build_frms()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Dec 2024 15:34:18 +0000 (16:34 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Dec 2024 15:36:33 +0000 (16:36 +0100)
STREAM frames emission in qcc_build_frms() has been splitted from
RESET_STREAM/STOP_SENDING into qcc_emit_rs_ss(). Now, the former cannot
fail, as such err label can be removed as it is unreachable.

This should be backported up to 3.1.

This should fix github issue #2824.

src/mux_quic.c

index 611c5dba22fc7730f6ea712932f03f54c165e2a6..e3fa05cb48ecb9cb5518bc9f4fdf074887900ced 100644 (file)
@@ -2443,11 +2443,6 @@ static int qcc_build_frms(struct qcc *qcc, struct list *qcs_failed)
 
        TRACE_LEAVE(QMUX_EV_QCC_SEND, qcc->conn);
        return total;
-
- err:
-       qcc_clear_frms(qcc);
-       TRACE_DEVEL("leaving on error", QMUX_EV_QCC_SEND, qcc->conn);
-       return 0;
 }
 
 /* Proceed to sending. Loop through all available streams for the <qcc>