aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-isl.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-21 15:11:38 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-21 15:11:38 +0000
commite723fe25d5130af4050264609e970048a6de97a5 (patch)
treeb9f5076cc0149af07252f110d9b59eb25c9ed6df /epan/dissectors/packet-isl.c
parent037c3c59a920125fbbcfeadffc878a4413ae1b6f (diff)
Add a tvb_ensure_bytes_exist(). Fixes bug 68 and its many duplicates.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14158 f5534014-38df-0310-8fa8-9805f1628bb7
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));