diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-11-29 11:02:34 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-29 13:38:09 +0000 |
commit | 15edc8d714b11dcff3a04e5d00b8db9adfdb81ed (patch) | |
tree | 704e99c03b6c36cedf202114f82a366264d9d5bc /epan/dissectors/packet-gsm_a_common.c | |
parent | 3749e981aa69d7598879d50b1f099181e0929d30 (diff) |
Fix bugs introduced in gcfc47c1
Bug: 11797
Change-Id: I2574e19aa2b86f7c72370d98dd6a2b72b471da25
Reviewed-on: https://code.wireshark.org/review/12280
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c index 5a0d7e6a0a..05518d00ed 100644 --- a/epan/dissectors/packet-gsm_a_common.c +++ b/epan/dissectors/packet-gsm_a_common.c @@ -2211,12 +2211,11 @@ de_mid(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guin proto_tree_add_item(tree, hf_gsm_a_odd_even_ind, tvb, curr_offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_a_mobile_identity_type, tvb, curr_offset, 1, ENC_BIG_ENDIAN); - curr_offset++; if (curr_offset - offset >= len) /* Sanity check */ return (curr_offset - offset); - digit_str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), NULL, FALSE); + digit_str = tvb_bcd_dig_to_wmem_packet_str(tvb, curr_offset, len - (curr_offset - offset), NULL, TRUE); proto_tree_add_string_format(tree, hf_gsm_a_imei, |