From: Frédéric Lécaille Date: Mon, 28 Feb 2022 15:55:32 +0000 (+0100) Subject: MINOR: quic: Retry on qc_build_pkt() failures X-Git-Tag: v2.6-dev3~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05e30ee7d547a34403f8c37be7b83ed067e3f6b7;p=thirdparty%2Fhaproxy.git MINOR: quic: Retry on qc_build_pkt() failures This is done going to stop_build label when qc_build_pkt() fails because of a lack of buffer room (returns -1). --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 4849a2338f..900b2bebec 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -2676,11 +2676,9 @@ static int qc_prep_pkts(struct quic_conn *qc, struct qring *qr, /* If there was already a correct packet present, set the * current datagram as prepared into . */ - if (prv_pkt) { + if (prv_pkt) qc_set_dg(cbuf, dglen, first_pkt); - goto stop_build; - } - goto out; + goto stop_build; default: break; }