]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Useless test in quic_lstnr_dghdlr()
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 15 Feb 2022 07:58:07 +0000 (08:58 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Feb 2022 16:23:44 +0000 (17:23 +0100)
This statement is useless. This should fix CID 1469651 for GH #1546.

src/xprt_quic.c

index 11c5d32006649c491dbbb58deb61956081227316..bec37acaae0730245f1be36d5f50182ef1c4cf2d 100644 (file)
@@ -5241,9 +5241,6 @@ struct task *quic_lstnr_dghdlr(struct task *t, void *ctx, unsigned int state)
        int first_pkt = 1;
 
        while ((dgram = MT_LIST_POP(&dghdlr->dgrams, typeof(dgram), mt_list))) {
-               if (!dgram)
-                       goto err;
-
                pos = dgram->buf;
                end = pos + dgram->len;
                do {