From 3f47d534cfb339577e73ccd97af6d68e5ec27325 Mon Sep 17 00:00:00 2001 From: gerald Date: Sun, 2 Jun 2002 23:55:11 +0000 Subject: Require that the LMP and RSVP message types be greater than 0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5612 f5534014-38df-0310-8fa8-9805f1628bb7 --- packet-lmp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packet-lmp.c') diff --git a/packet-lmp.c b/packet-lmp.c index cd208efc6c..aabe682e95 100644 --- a/packet-lmp.c +++ b/packet-lmp.c @@ -3,7 +3,7 @@ * * (c) Copyright Ashok Narayanan * - * $Id: packet-lmp.c,v 1.7 2002/06/02 21:42:58 gerald Exp $ + * $Id: packet-lmp.c,v 1.8 2002/06/02 23:55:11 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -828,7 +828,8 @@ dissect_lmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset+3, 1, message_type); proto_tree_add_text(lmp_header_tree, tvb, offset+4, 2, "Length: %d bytes", msg_length); - if (LMPF_MSG + message_type <= LMPF_MSG_CHANNEL_STATUS_RESP) { + if (LMPF_MSG + message_type <= LMPF_MSG_CHANNEL_STATUS_RESP && + message_type > 0) { proto_tree_add_boolean_hidden(lmp_header_tree, lmp_filter[LMPF_MSG + message_type], tvb, offset+3, 1, 1); } else { -- cgit v1.2.3