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/packet-gtpv2.c | |
parent | f8b32e5b4edac7c4ca9932aacef64b48e514b577 (diff) | |
download | wireshark-152e245804397bfcd0fc3e4cfac22e1d49b0b169.tar.gz |
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/packet-gtpv2.c')
-rw-r--r-- | epan/dissectors/packet-gtpv2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c index 867467fa8c..2a904453b0 100644 --- a/epan/dissectors/packet-gtpv2.c +++ b/epan/dissectors/packet-gtpv2.c @@ -3972,7 +3972,7 @@ dissect_gtpv2_mm_context_eps_qq(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre proto_tree_add_item(tree, hf_gtpv2_mm_context_old_kasme, tvb, offset, 32, ENC_NA); offset += 32; /* (s+33) to (s+64) old NH */ - if ((dword & 1) == 1) { + if (dword) { proto_tree_add_item(tree, hf_gtpv2_mm_context_old_nh, tvb, offset, 32, ENC_NA); offset += 32; } |