From 409beb4c5ade240f890bff28082145445a16cdaf Mon Sep 17 00:00:00 2001 From: gerald Date: Sat, 26 Mar 2005 23:02:24 +0000 Subject: 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 --- epan/dissectors/packet-vines.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-vines.c') 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, -- cgit v1.2.3