diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2010-09-03 10:31:56 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2010-09-03 10:31:56 +0000 |
commit | a974e115ce85c415f94661ffdf0c61451e639997 (patch) | |
tree | 63f3d69a2db48113bcdbe19e3008200c08737ca1 /epan/dissectors/packet-per.c | |
parent | 7ac2adc3953aeb9ca638f9ecf9d97aaa15259987 (diff) |
Fix start offset and length handling in SEQUNCE OF (caused Gtk crash for sequences at the end of frame)
svn path=/trunk/; revision=34058
Diffstat (limited to 'epan/dissectors/packet-per.c')
-rw-r--r-- | epan/dissectors/packet-per.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c index b8dcadbf42..08b9781a61 100644 --- a/epan/dissectors/packet-per.c +++ b/epan/dissectors/packet-per.c @@ -592,10 +592,10 @@ DEBUG_ENTRY("dissect_per_sequence_of"); hfi = proto_registrar_get_nth(hf_index); if (IS_FT_UINT(hfi->type)) { - item = proto_tree_add_uint(parent_tree, hf_index, tvb, offset>>3, 0, length); + item = proto_tree_add_uint(parent_tree, hf_index, tvb, old_offset>>3, 0, length); proto_item_append_text(item, (length==1)?" item":" items"); } else { - item=proto_tree_add_item(parent_tree, hf_index, tvb, offset>>3, 0, FALSE); + item=proto_tree_add_item(parent_tree, hf_index, tvb, old_offset>>3, 0, FALSE); } tree=proto_item_add_subtree(item, ett_index); |