Ethereal-dev: [Ethereal-dev] bug fix in ldp dissector

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Motonori Shindo <mshindo@xxxxxxxxxxx>
Date: Fri, 16 Aug 2002 02:13:41 +0900 (JST)
Hi,

Here's a simple patch that fixes a bug in dissecting an interface
parameter of LDP VC FEC.

Regards,

=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=
 +----+----+     
 |.. .|    |     Motonori Shindo
 |_~__|    |     
 | .. |~~_~|     Sr. Systems Engineer
 | .  |    |     CoSine Communications Inc.
 +----+----+     
 C o S i n e     e-mail:  mshindo@xxxxxxxxxxxxx 
Communications
=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=

Index: packet-ldp.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ldp.c,v
retrieving revision 1.40
diff -u -r1.40 packet-ldp.c
--- packet-ldp.c	2002/08/02 23:35:53	1.40
+++ packet-ldp.c	2002/08/15 17:06:56
@@ -723,7 +723,7 @@
 
 			  while ( (vc_len > 1) && (rem > 1) ) {	/* enough to include id and length */
 			    intparam_len = tvb_get_guint8(tvb, offset+1);
-			    ti = proto_tree_add_text(fec_tree, tvb, offset, 4, "Interface Paramameter");
+			    ti = proto_tree_add_text(fec_tree, tvb, offset, intparam_len, "Interface Paramameter");
 			    vcintparam_tree = proto_item_add_subtree(ti, ett_ldp_fec_vc_interfaceparam);
 			    if(vcintparam_tree == NULL) return;
 			    proto_tree_add_item(vcintparam_tree,hf_ldp_tlv_fec_vc_intparam_id,tvb,offset,1,FALSE);