(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-hilscher.c) |
| |
| 133 | | | dissect_hilscher_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) |
| 134 | | | { |
| 135 | | | guint info_type; |
| 136 | | | gint offset; |
| 137 | | | |
| 138 | | | |
| 139 | | | if (tvb_length(tvb) < 14) |
| 140 | | | return FALSE; |
| 141 | | | |
| 142 | | | |
| 143 | | | |
| 144 | | | if ((tvb_get_guint8(tvb, 6) == 0x00) && |
| 145 | | | (tvb_get_guint8(tvb, 7) == 0x02) && |
| 146 | | | (tvb_get_guint8(tvb, 8) == 0xa2) && |
| 147 | | | (tvb_get_guint8(tvb, 9) == 0xff) && |
| 148 | | | (tvb_get_guint8(tvb, 10) == 0xff) && |
| 149 | | | (tvb_get_guint8(tvb, 11) == 0xff) && |
| 150 | | | (tvb_get_guint8(tvb, 12) == 0x88) && |
| 151 | | | (tvb_get_guint8(tvb, 13) == 0xff) ) |
| 152 | | | { |
| 153 | | | |
| 154 | | | |
| 155 | | | offset = INFO_TYPE_OFFSET; |
| 156 | | | info_type = tvb_get_guint8(tvb, offset); |
| 157 | | | |
| 158 | | | switch (info_type) |
| 159 | | | { |
| 160 | | | |
| 161 | | | case 0x00: |
| 162 | | | dissect_hilscher_netanalyzer(tvb, pinfo, tree, offset); |
| 163 | | | break; |
| 164 | | | |
| 165 | | | |
| 166 | | | default: |
| 167 | | | return FALSE; |
| 168 | | | break; |
Unreachable Control Flow
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 169 | | | } |
| 170 | | | |
| 171 | | | } |
| 172 | | | else |
| 173 | | | { |
| 174 | | | |
| 175 | | | return FALSE; |
| 176 | | | } |
| 177 | | | |
| 178 | | | return TRUE; |
| 179 | | | } |
| |