forked from osmocom/wireshark
NAS 5GS: correction of QoS Rules with the length of two octets
Change-Id: I2d5c2e714067ec3198e24c54145315c009b56198 Reviewed-on: https://code.wireshark.org/review/35729 Petri-Dish: Pascal Quantin <pascal@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
This commit is contained in:
parent
bc8140be0b
commit
160a4696fa
|
@ -4595,12 +4595,15 @@ de_sm_pco(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, g
|
|||
|
||||
curr_len -= 2;
|
||||
curr_offset += 2;
|
||||
if (link_dir == P2P_DIR_DL && (prot == 0x0023 || prot == 0x0024))
|
||||
if (link_dir == P2P_DIR_DL && (prot == 0x0023 || prot == 0x0024)) {
|
||||
proto_tree_add_item_ret_uint(pco_tree, hf_gsm_a_gm_sm_pco_length2, tvb, curr_offset, 2, ENC_BIG_ENDIAN, &e_len);
|
||||
else
|
||||
curr_len -= 2;
|
||||
curr_offset += 2;
|
||||
} else {
|
||||
proto_tree_add_item_ret_uint(pco_tree, hf_gsm_a_gm_sm_pco_length, tvb, curr_offset, 1, ENC_NA, &e_len);
|
||||
curr_len -= 1;
|
||||
curr_offset += 1;
|
||||
curr_len -= 1;
|
||||
curr_offset += 1;
|
||||
}
|
||||
|
||||
switch (prot)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue