aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rx.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-13 20:59:39 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-13 20:59:39 +0000
commite3bd36c2d54d56a7c6c4ef10832319a4934226d8 (patch)
tree512f06db3538cdb49b19b7b27c60132f9683595f /epan/dissectors/packet-rx.c
parentdc223932b8b4006810cf8259efe149e760b41029 (diff)
Add a couple of tvb_ensure_bytes_exist() calls to fix bug 12.
svn path=/trunk/; revision=14064
Diffstat (limited to 'epan/dissectors/packet-rx.c')
-rw-r--r--epan/dissectors/packet-rx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rx.c b/epan/dissectors/packet-rx.c
index bc1128d3b8..51ec9ad2b5 100644
--- a/epan/dissectors/packet-rx.c
+++ b/epan/dissectors/packet-rx.c
@@ -240,6 +240,7 @@ dissect_rx_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
offset, 4, tl);
offset += 4;
+ tvb_ensure_bytes_exist(tvb, offset, tl);
proto_tree_add_item(tree, hf_rx_ticket, tvb, offset, tl, FALSE);
offset += tl;
}