forked from osmocom/wireshark
NAS-5GS: shift supi_fmt field before testing
From cppcheck: epan/dissectors/packet-nas_5gs.c:749: style: Mismatching assignment and comparison, comparison 'supi_fmt==1' is always false. Change-Id: I702f0cae24fd95dc925a87ab3766f2995f3eb759 Reviewed-on: https://code.wireshark.org/review/36554 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Pascal Quantin <pascal@wireshark.org>
This commit is contained in:
parent
9c28c92d78
commit
d854143e8f
|
@ -723,7 +723,7 @@ de_nas_5gs_mm_5gs_mobile_id(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo,
|
|||
proto_tree_add_bitmask_list(tree, tvb, offset, 1, flags_supi_fmt_tid, ENC_BIG_ENDIAN);
|
||||
offset++;
|
||||
|
||||
supi_fmt = oct & 0x70;
|
||||
supi_fmt = (oct & 0x70) >> 4;
|
||||
if (supi_fmt == 0) {
|
||||
/* IMSI */
|
||||
|
||||
|
@ -3172,7 +3172,6 @@ de_nas_5gs_sm_qos_flow_des(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _
|
|||
val, "%u %s (%u)", val * mult, unit_str, val);
|
||||
curr_offset += (param_len - 1);
|
||||
break;
|
||||
break;
|
||||
case 0x06:
|
||||
proto_tree_add_item(sub_tree2, hf_nas_5gs_sm_averaging_window, tvb, curr_offset, 2, ENC_BIG_ENDIAN);
|
||||
curr_offset += param_len;
|
||||
|
|
Loading…
Reference in New Issue