aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isl.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-04-21 15:11:38 +0000
committerGerald Combs <gerald@wireshark.org>2005-04-21 15:11:38 +0000
commitf907a1085bc0868d51d7fe1d5230a5ade5df5e44 (patch)
treeb9f5076cc0149af07252f110d9b59eb25c9ed6df /epan/dissectors/packet-isl.c
parent09ed220e28a9ed1e758421c6d20f96802af74669 (diff)
downloadwireshark-f907a1085bc0868d51d7fe1d5230a5ade5df5e44.tar.gz
wireshark-f907a1085bc0868d51d7fe1d5230a5ade5df5e44.tar.bz2
wireshark-f907a1085bc0868d51d7fe1d5230a5ade5df5e44.zip
Add a tvb_ensure_bytes_exist(). Fixes bug 68 and its many duplicates.
svn path=/trunk/; revision=14158
Diffstat (limited to 'epan/dissectors/packet-isl.c')
-rw-r--r--epan/dissectors/packet-isl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-isl.c b/epan/dissectors/packet-isl.c
index 8d74ab4bfd..5372c0c6a7 100644
--- a/epan/dissectors/packet-isl.c
+++ b/epan/dissectors/packet-isl.c
@@ -230,6 +230,7 @@ dissect_isl(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int fcs_len)
}
if (tree) {
+ tvb_ensure_bytes_exist(payload_tvb, 0, 6);
/* This part looks sort of like a SNAP-encapsulated LLC header... */
proto_tree_add_text(fh_tree, payload_tvb, 0, 1, "DSAP: 0x%X", tvb_get_guint8(tvb, 14));
proto_tree_add_text(fh_tree, payload_tvb, 1, 1, "SSAP: 0x%X", tvb_get_guint8(tvb, 15));