aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-roofnet.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-12-19 17:48:58 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-12-19 17:48:58 +0000
commit3dc77cefedd472880eed9683fde4aaf877e9bbde (patch)
treee8fad66c8161102741ccd547c1e021a3f6b19a44 /epan/dissectors/packet-roofnet.c
parent4509ef242d8c296fddee85fcac98d307123ff929 (diff)
Need to call ptvcursor_current_offset() BEFORE ptvcursor_free().
svn path=/trunk/; revision=54257
Diffstat (limited to 'epan/dissectors/packet-roofnet.c')
-rw-r--r--epan/dissectors/packet-roofnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-roofnet.c b/epan/dissectors/packet-roofnet.c
index 0a35fcbff0..c79f686917 100644
--- a/epan/dissectors/packet-roofnet.c
+++ b/epan/dissectors/packet-roofnet.c
@@ -162,9 +162,9 @@ static void dissect_roofnet_link(proto_tree *tree, tvbuff_t *tvb, guint *offset,
ptvcursor_add(cursor, hf_roofnet_link_seq, 4, ENC_BIG_ENDIAN);
ptvcursor_add(cursor, hf_roofnet_link_age, 4, ENC_BIG_ENDIAN);
+ *offset = ptvcursor_current_offset(cursor);
ptvcursor_free(cursor);
- *offset = ptvcursor_current_offset(cursor);
proto_tree_add_ipv4(subtree, hf_roofnet_link_dst, tvb, *offset, 4, addr_dst);
/* don't increment offset here because the dst of this link is the src of the next one */
}