mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-11 09:52:56 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue