aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-17 05:14:44 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-17 05:14:44 +0000
commit8e46cb49b7e608a1c7c6a7c2fe1a4080de0732a9 (patch)
tree8319f13633dd9e96cdc701f4dff986109944fb0e /epan
parentefd08d91bc854188407ae2da13cd9b85edbb2e54 (diff)
Add a tvb_ensure_bytes_exist(). Fixes bug 62.
svn path=/trunk/; revision=14112
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-eth.c b/epan/dissectors/packet-eth.c
index 2e11e6a124..054b16a62f 100644
--- a/epan/dissectors/packet-eth.c
+++ b/epan/dissectors/packet-eth.c
@@ -379,6 +379,7 @@ add_ethernet_trailer(proto_tree *fh_tree, int trailer_id, tvbuff_t *tvb,
}
}
if (trailer_length != 0) {
+ tvb_ensure_bytes_exist(tvb, 0, trailer_length);
proto_tree_add_item(fh_tree, trailer_id, trailer_tvb, 0,
trailer_length, FALSE);
}