From 036cc5d88061a05442183d243d07604f696537b5 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 26 Sep 2022 15:02:31 +0200 Subject: [PATCH] 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. --- src/mux_quic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mux_quic.c b/src/mux_quic.c index 0482e92bc..3baab767f 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.