diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-01-27 23:17:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-01-27 23:17:39 +0000 |
commit | 3fc16d149685cc7a5e77a4d33765521424d1ecda (patch) | |
tree | 3081405b59cd979f72b651f10ee4f0c54b791075 | |
parent | 7f1af8207c7a406a4c8f698ab0c1d02731e95906 (diff) | |
download | wireshark-3fc16d149685cc7a5e77a4d33765521424d1ecda.tar.gz wireshark-3fc16d149685cc7a5e77a4d33765521424d1ecda.tar.bz2 wireshark-3fc16d149685cc7a5e77a4d33765521424d1ecda.zip |
Fix a similar problem in the RFC 3332 version of the protocol.
svn path=/trunk/; revision=7013
-rw-r--r-- | packet-m3ua.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-m3ua.c b/packet-m3ua.c index df019f7319..5f11274da3 100644 --- a/packet-m3ua.c +++ b/packet-m3ua.c @@ -7,7 +7,7 @@ * * Copyright 2000, 2001, 2002, 2003 Michael Tuexen <Michael.Tuexen [AT] siemens.com> * - * $Id: packet-m3ua.c,v 1.25 2003/01/27 21:40:40 guy Exp $ + * $Id: packet-m3ua.c,v 1.26 2003/01/27 23:17:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1475,14 +1475,14 @@ dissect_parameter(tvbuff_t *parameter_tvb, packet_info *pinfo, proto_tree *tree, proto_item *parameter_item; proto_tree *parameter_tree; - if (!tree) - return; /* Nothing to do here */ - /* extract tag and length from the parameter */ tag = tvb_get_ntohs(parameter_tvb, PARAMETER_TAG_OFFSET); length = tvb_get_ntohs(parameter_tvb, PARAMETER_LENGTH_OFFSET); padding_length = tvb_length(parameter_tvb) - length; + if (!tree && tag != PROTOCOL_DATA_PARAMETER_TAG) + return; /* Nothing to do here */ + /* create proto_tree stuff */ parameter_item = proto_tree_add_text(m3ua_tree, parameter_tvb, PARAMETER_HEADER_OFFSET, tvb_length(parameter_tvb), val_to_str(tag, parameter_tag_values, "Unknown parameter")); parameter_tree = proto_item_add_subtree(parameter_item, ett_parameter); |