GSUP: fix IMEI decoding missing last byte

Do not cut off the last byte when passing the IMEI IE to the
bssap.imei dissector.

Change-Id: Id5cda256f5a641afcf72c677313b8d8681366ee8
Reviewed-on: https://code.wireshark.org/review/33742
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Oliver Smith 2019-06-26 15:07:39 +02:00 committed by Anders Broman
parent 6038b56330
commit ca62d2c009
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ static void dissect_sm_rp_ui_ie(tvbuff_t *tvb, packet_info *pinfo, guint offset,
static void dissect_imei_ie(tvbuff_t *tvb, packet_info *pinfo, guint offset,
guint ie_len, proto_tree *tree)
{
tvbuff_t *ss_tvb = tvb_new_subset_length(tvb, offset-1, ie_len);
tvbuff_t *ss_tvb = tvb_new_subset_length(tvb, offset-1, ie_len+1);
if(bssap_imei_handle)
call_dissector(bssap_imei_handle, ss_tvb, pinfo, tree);
}