aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-vines.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-26 23:02:24 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-03-26 23:02:24 +0000
commit409beb4c5ade240f890bff28082145445a16cdaf (patch)
treeea03e1072b77fb99b5bb36cad6953b43fdcdabb2 /epan/dissectors/packet-vines.c
parent313e92ec878fb0d539997c4b30492e0bc3180556 (diff)
Make sure we have enough bytes in our tvbuff to dissect our header.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13925 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-vines.c')
-rw-r--r--epan/dissectors/packet-vines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-vines.c b/epan/dissectors/packet-vines.c
index 80b86f5e26..4a59017bf8 100644
--- a/epan/dissectors/packet-vines.c
+++ b/epan/dissectors/packet-vines.c
@@ -333,7 +333,7 @@ dissect_vines_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* Adjust the length of this tvbuff to include only the Vines IP
* datagram.
*/
- set_actual_length(tvb, viph.vip_pktlen);
+ set_actual_length(tvb, viph.vip_pktlen < 18 ? 18 : viph.vip_pktlen);
if (tree) {
ti = proto_tree_add_item(tree, proto_vines_ip, tvb,