diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-09-27 23:57:29 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-09-28 06:07:01 +0000 |
commit | 152e245804397bfcd0fc3e4cfac22e1d49b0b169 (patch) | |
tree | 3ed21c5c6178a39c59409ddaa7859c2d59de5163 /epan/dissectors/asn1/rrc | |
parent | f8b32e5b4edac7c4ca9932aacef64b48e514b577 (diff) |
proto_tree_add_item_ret_(u)int/proto_tree_add_bitmask_with_flags_ret_uint64: return real value
Apply mask and bit shift on the returned value.
Change-Id: I00aebc854756f01a25199a259d6d5252abea4349
Reviewed-on: https://code.wireshark.org/review/17958
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/asn1/rrc')
-rw-r--r-- | epan/dissectors/asn1/rrc/rrc.cnf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/asn1/rrc/rrc.cnf b/epan/dissectors/asn1/rrc/rrc.cnf index 32bf9c9556..444db4e0d5 100644 --- a/epan/dissectors/asn1/rrc/rrc.cnf +++ b/epan/dissectors/asn1/rrc/rrc.cnf @@ -669,7 +669,7 @@ fp_info *fpinf ; subtree = proto_item_add_subtree(actx->created_item, ett_rrc_ims_info); proto_tree_add_item_ret_uint(subtree, hf_rrc_ims_info_atgw_trans_det_cont_type, imsInformation_tvb, curr_offset, 1, ENC_BIG_ENDIAN, &atgw_trans_det_cont); curr_offset++; - switch (atgw_trans_det_cont & 0x03) { + switch (atgw_trans_det_cont) { case 0: proto_tree_add_item(subtree, hf_rrc_ims_info_atgw_udp_port, imsInformation_tvb, curr_offset, 2, ENC_BIG_ENDIAN); curr_offset+=2; |