CFDP: Fix off-by-one offset
Reference: https://public.ccsds.org/Pubs/727x0b4.pdf (page 5-1). Bug: 16361 Change-Id: I4544dc1c968c4c42dad82e11b00459cdbc85045f Reviewed-on: https://code.wireshark.org/review/36021 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
0596047e3f
commit
f5f435305b
|
@ -1301,7 +1301,7 @@ dissect_cfdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_
|
|||
cfdp_byte2,
|
||||
ENC_BIG_ENDIAN,
|
||||
&retval);
|
||||
offset += 2;
|
||||
offset += 1;
|
||||
|
||||
len_ent_id = ((retval & HDR_LEN_ENT_ID) >> 4) + 1;
|
||||
dissect_cfdp_src_entity_id(tvb, pinfo, cfdp_header_tree, offset, len_ent_id);
|
||||
|
|
Loading…
Reference in New Issue