diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 0f9987e02..23126e7be 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -5429,7 +5429,7 @@ static int quic_get_dgram_dcid(unsigned char *buf, const unsigned char *end, minlen = long_header ? QUIC_LONG_PACKET_MINLEN : QUIC_SHORT_PACKET_MINLEN + QUIC_HAP_CID_LEN; skip = long_header ? QUIC_LONG_PACKET_DCID_OFF : QUIC_SHORT_PACKET_DCID_OFF; - if (end - buf <= minlen || !(*buf & QUIC_PACKET_FIXED_BIT)) + if (end - buf <= minlen) goto err; buf += skip;