aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wtp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-05-19 20:23:29 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-05-19 20:23:29 +0000
commit61a070c192e47cf0e73e5cf14cbf365d38e816e0 (patch)
tree507a39a4b298d4ec96468a4e586aa092382a032e /packet-wtp.c
parent33f16f75f381834e69b3de24daa3333bd57bbac2 (diff)
From Olivier Biot: fix incorrect tvbuff definition in the WTP PDU
concatenation situation. Now the WSP dissector wanting to display the entire PDU will stick to the sub-tvbuff boundaries in the data highlight pane. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7690 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wtp.c')
-rw-r--r--packet-wtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-wtp.c b/packet-wtp.c
index 843a011e9c..f4e5c31cc5 100644
--- a/packet-wtp.c
+++ b/packet-wtp.c
@@ -2,7 +2,7 @@
*
* Routines to dissect WTP component of WAP traffic.
*
- * $Id: packet-wtp.c,v 1.46 2003/05/08 18:49:20 guy Exp $
+ * $Id: packet-wtp.c,v 1.47 2003/05/19 20:23:29 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -364,7 +364,7 @@ dissect_wtp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (i > 1 && check_col(pinfo->cinfo, COL_INFO)) {
col_append_str(pinfo->cinfo, COL_INFO, ", ");
}
- wsp_tvb = tvb_new_subset(tvb, offCur + c_fieldlen, -1, c_pdulen);
+ wsp_tvb = tvb_new_subset(tvb, offCur + c_fieldlen, c_pdulen, c_pdulen);
dissect_wtp_common(wsp_tvb, pinfo, wtp_tree);
offCur += c_fieldlen + c_pdulen;
i++;