]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Retry on qc_build_pkt() failures
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 28 Feb 2022 15:55:32 +0000 (16:55 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 4 Mar 2022 16:47:32 +0000 (17:47 +0100)
This is done going to stop_build label when qc_build_pkt() fails
because of a lack of buffer room (returns -1).

src/xprt_quic.c

index 4849a2338fc6cc92f2c9f9e15131f842937817a8..900b2bebec8c85467c37c80eb1b8dcffd83b7b48 100644 (file)
@@ -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 <cbuf>.
                         */
-                       if (prv_pkt) {
+                       if (prv_pkt)
                                qc_set_dg(cbuf, dglen, first_pkt);
-                               goto stop_build;
-                       }
-                       goto out;
+                       goto stop_build;
                default:
                        break;
                }