(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-afs.c) |
| |
| 2328 | | | dissect_vol_reply(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *tree, int offset, int opcode) |
| 2329 | | | { |
| 2330 | | | if ( rxinfo->type == RX_PACKET_TYPE_DATA ) |
| 2331 | | | { |
| 2332 | | | switch ( opcode ) |
| 2333 | | | { |
| 2334 | | | case 121: |
| 2335 | | | |
| 2336 | | | OUT_UINT(hf_afs_vol_count);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-afs.c |
| |
337 | #define OUT_UINT(field) \ |
338 | proto_tree_add_uint(tree, field, tvb, offset, 4, tvb_get_ntohl(tvb, offset)); \ |
339 | offset += 4; |
| |
|
| 2337 | | | OUT_RXStringV(hf_afs_vol_name, 32);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-afs.c |
| |
433 | #define OUT_RXStringV(field, length) \ |
434 | { char tmp_orxsv[length+1]; \ |
435 | int i_orxsv,soff_orxsv; \ |
436 | soff_orxsv = offset;\ |
437 | for (i_orxsv=0; i_orxsv<length; i_orxsv++)\ |
438 | {\ |
439 | tmp_orxsv[i_orxsv] = (char) tvb_get_ntohl(tvb, offset);\ |
440 | offset += 4;\ |
441 | }\ |
442 | tmp_orxsv[length] = '\0';\ |
443 | proto_tree_add_string(tree, field, tvb, soff_orxsv, length*4, tmp_orxsv);\ |
444 | } |
| |
|
| 2338 | | | break; |
| 2339 | | | } |
| 2340 | | | } |
| 2341 | | | else if ( rxinfo->type == RX_PACKET_TYPE_ABORT ) |
| 2342 | | | { |
| 2343 | | | OUT_UINT(hf_afs_vol_errcode);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-afs.c |
| |
337 | #define OUT_UINT(field) \ |
338 | proto_tree_add_uint(tree, field, tvb, offset, 4, tvb_get_ntohl(tvb, offset)); \ |
339 | offset += 4; |
| |
|
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 2344 | | | } |
| 2345 | | | } |
| |