Ethereal-dev: [Ethereal-dev] MMSE Dissector Patch...

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

From: Martin Gignac <lmcgign@xxxxxxxxxxxxxxx>
Date: Fri, 7 Jun 2002 14:46:47 -0400 (EDT)
Another one that allows the dissector to properly interpret and show
From: headers with a Value-Length field bigger than a single byte.

-Martin
--- packet-mmse.c.orig	Fri Jun  7 14:36:18 2002
+++ packet-mmse.c	Fri Jun  7 14:41:23 2002
@@ -24,8 +24,7 @@
  * ----------
  *
  * Dissector of an encoded Multimedia message PDU, as defined by the WAPForum
- * (http://www.wapforum.org) in "WAP-209.102-MMSEncapsulation" according
- * the draft version of 8-February-2001.
+ * (http://www.wapforum.org) in "WAP-209-MMSEncapsulation-20020105-a".
  */
 
 #ifdef HAVE_CONFIG_H
@@ -517,8 +516,8 @@
 						  strval);
 		    }
 		    proto_tree_add_string(mmse_tree, hf_mmse_from, tvb,
-			    		  offset-1, length + 2, strval);
-		    offset += length + 1;
+			    		  offset-1, length + count + 1, strval);
+		    offset += length + count;
 		    break;
 		case MM_MCLASS_HDR:
 		    /*