From Olivier Biot: fix incorrect tvbuff definition in the WTP PDU
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 May 2003 20:23:29 +0000 (20:23 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 19 May 2003 20:23:29 +0000 (20:23 +0000)
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

packet-wtp.c

index 843a011e9c880ac424559851881da8c28023bb7b..f4e5c31cc5bda4d50d1e3d892ed729c7ebf091a0 100644 (file)
@@ -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++;