(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-sccpmg.c) |
| |
| 151 | | | dissect_sccpmg_affected_pc(tvbuff_t *tvb, proto_tree *sccpmg_tree) |
| 152 | | | { |
| 153 | | | guint8 offset = SCCPMG_AFFECTED_PC_OFFSET;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-sccpmg.c |
| |
96 | #define SCCPMG_AFFECTED_PC_OFFSET (SCCPMG_AFFECTED_SSN_OFFSET + SCCPMG_AFFECTED_SSN_LENGTH) |
| |
|
| 154 | | | |
| 155 | | | if (mtp3_standard == ITU_STANDARD) { |
| 156 | | | proto_tree_add_item(sccpmg_tree, hf_sccpmg_affected_itu_pc, tvb, |
| 157 | | | offset, ITU_PC_LENGTH, TRUE); |
| 158 | | | } else if (mtp3_standard == JAPAN_STANDARD) { |
| 159 | | | proto_tree_add_item(sccpmg_tree, hf_sccpmg_affected_japan_pc, |
| 160 | | | tvb, offset, JAPAN_PC_LENGTH, TRUE); |
| 161 | | | } else { |
| 162 | | | int *hf_affected_pc; |
| 163 | | | |
| 164 | | | if (mtp3_standard == ANSI_STANDARD) |
| 165 | | | { |
| 166 | | | hf_affected_pc = &hf_sccpmg_affected_ansi_pc; |
| 167 | | | } else { |
| 168 | | | hf_affected_pc = &hf_sccpmg_affected_chinese_pc; |
| 169 | | | } |
| 170 | | | |
| 171 | | | |
| 172 | | | dissect_mtp3_3byte_pc(tvb, offset, sccpmg_tree, |
| 173 | | | ett_sccpmg_affected_pc, *hf_affected_pc, |
| 174 | | | hf_sccpmg_affected_pc_network, |
| 175 | | | hf_sccpmg_affected_pc_cluster, |
| 176 | | | hf_sccpmg_affected_pc_member, 0, 0); |
| 177 | | | |
| 178 | | | offset += ANSI_PC_LENGTH; |
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 179 | | | } |
| 180 | | | } |
| |