Skip to content

Commit

Permalink
[BUGFIX] lsquic_gquic_be_parse_packet_in_finish() need to make sure t…
Browse files Browse the repository at this point in the history
…he packet has flag PI_GQUIC.

Fix issue #262
  • Loading branch information
gwanglst committed Jun 15, 2021
1 parent ed94ac1 commit b2e1404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liblsquic/lsquic_parse_gquic_be.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ lsquic_gquic_be_parse_packet_in_finish (lsquic_packet_in_t *packet_in,
struct packin_parse_state *state)
{
lsquic_packno_t packno;
if (state->pps_nbytes)
if ((packet_in->pi_flags & PI_GQUIC) && state->pps_nbytes)
{
READ_UINT(packno, 64, state->pps_p, state->pps_nbytes);
packet_in->pi_packno = packno;
Expand Down

0 comments on commit b2e1404

Please sign in to comment.