From: Frédéric Lécaille Date: Tue, 15 Feb 2022 07:58:07 +0000 (+0100) Subject: MINOR: quic: Useless test in quic_lstnr_dghdlr() X-Git-Tag: v2.6-dev2~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=498e992c1cfbd5de6e1a513d745438433800f541;p=thirdparty%2Fhaproxy.git MINOR: quic: Useless test in quic_lstnr_dghdlr() This statement is useless. This should fix CID 1469651 for GH #1546. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 11c5d32006..bec37acaae 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -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 {