mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
MINOR: quic: Remove a useless test in quic_get_dgram_dcid()
This test is already done when entering quic_get_dgram_dcid().
This commit is contained in:
parent
f6f7520b9b
commit
bfa3236c6c
@ -5429,7 +5429,7 @@ static int quic_get_dgram_dcid(unsigned char *buf, const unsigned char *end,
|
|||||||
minlen = long_header ?
|
minlen = long_header ?
|
||||||
QUIC_LONG_PACKET_MINLEN : QUIC_SHORT_PACKET_MINLEN + QUIC_HAP_CID_LEN;
|
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;
|
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;
|
goto err;
|
||||||
|
|
||||||
buf += skip;
|
buf += skip;
|
||||||
|
Loading…
Reference in New Issue
Block a user