(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-agentx.c) |
| |
| 560 | | | static void dissect_close_pdu(tvbuff_t *tvb, proto_tree *tree,int offset,int len) |
| 561 | | | { |
| 562 | | | proto_item* item; |
| 563 | | | proto_tree* subtree; |
| 564 | | | guint8 reason; |
| 565 | | | |
| 566 | | | item = proto_tree_add_text(tree, tvb, offset, len, "Close-PDU"); |
| 567 | | | subtree = proto_item_add_subtree(item, ett_close); |
| 568 | | | |
| 569 | | | reason = tvb_get_guint8(tvb, offset); |
| 570 | | | tvb_get_ntoh24(tvb, offset + 1); |
| 571 | | | |
| 572 | | | proto_tree_add_uint(subtree, hf_close_reason, tvb, offset, 1, reason); |
| 573 | | | offset+=4; |
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 574 | | | } |
| |