NAS 5GS: Partial service area element count fix
authorSwapnil Roy <swapnil.advent@gmail.com>
Sat, 18 Aug 2018 06:04:31 +0000 (11:34 +0530)
committerAnders Broman <a.broman58@gmail.com>
Mon, 20 Aug 2018 07:58:55 +0000 (07:58 +0000)
Change-Id: I2c6493c7e32c908f9719cd4a3e5519e22923e338
Reviewed-on: https://code.wireshark.org/review/29183
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-nas_5gs.c

index 8480cda98e00358d682b27c1c1088fa96de8640d..2b454ea29f4cd73838069ca81eafa75d5cda3663 100644 (file)
@@ -1228,7 +1228,7 @@ de_nas_5gs_mm_sal(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
         /* Allowed type    Type of list    Number of elements    octet 1 */
         sal_head = tvb_get_guint8(tvb, curr_offset);
         sal_t_li = (sal_head & 0x60) >> 5;
-        sal_num_e = sal_head & 0x1f;
+        sal_num_e = (sal_head & 0x1f) + 1;
         proto_tree_add_bitmask_list(sub_tree, tvb, curr_offset, 1, flags_sal, ENC_BIG_ENDIAN);
         curr_offset++;
         switch (sal_t_li) {