From: Amaury Denoyelle Date: Mon, 26 Sep 2022 13:02:31 +0000 (+0200) Subject: MINOR: mux-quic: check quic-conn return code on Tx X-Git-Tag: v2.7-dev8~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=036cc5d88061a05442183d243d07604f696537b5;p=thirdparty%2Fhaproxy.git MINOR: mux-quic: check quic-conn return code on Tx Inspect return code of qc_send_mux(). If quic-conn layer reports an error, this will interrupt the current emission process. This should be backported up to 2.6. --- diff --git a/src/mux_quic.c b/src/mux_quic.c index 0482e92bc7..3baab767f4 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -1399,7 +1399,8 @@ static int qc_send_frames(struct qcc *qcc, struct list *frms) LIST_INIT(&qcc->send_retry_list); - qc_send_mux(qcc->conn->handle.qc, frms); + if (!qc_send_mux(qcc->conn->handle.qc, frms)) + goto err; /* If there is frames left at this stage, transport layer is blocked. * Subscribe on it to retry later.