aboutsummaryrefslogtreecommitdiffstats
path: root/packet-mmse.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-06-07 22:50:49 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-06-07 22:50:49 +0000
commit8be8b04e06508de056871acd2daf015959f54965 (patch)
tree086724b8905797617a346d652c6bbe3e3981a538 /packet-mmse.c
parent72872ea56f829b8248a7e28b6226a025409d8627 (diff)
From Martin Gignac: fix the handling of From: headers to properly
interpret and show Value-Length fields bigger than a single byte. allows the dissector to properly interpret and show From: headers with a Value-Length field bigger than a single byte. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5653 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-mmse.c')
-rw-r--r--packet-mmse.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/packet-mmse.c b/packet-mmse.c
index 32aea542e3..683f6548c7 100644
--- a/packet-mmse.c
+++ b/packet-mmse.c
@@ -2,7 +2,7 @@
* Routines for MMS Message Encapsulation dissection
* Copyright 2001, Tom Uijldert <tom.uijldert@cmg.nl>
*
- * $Id: packet-mmse.c,v 1.11 2002/06/05 23:54:10 guy Exp $
+ * $Id: packet-mmse.c,v 1.12 2002/06/07 22:50:49 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -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 @@ dissect_mmse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
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:
/*