diff options
Diffstat (limited to 'epan/dissectors/packet-wtp.c')
-rw-r--r-- | epan/dissectors/packet-wtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-wtp.c b/epan/dissectors/packet-wtp.c index b3ef980973..13390cd7b7 100644 --- a/epan/dissectors/packet-wtp.c +++ b/epan/dissectors/packet-wtp.c @@ -278,7 +278,7 @@ wtp_handle_tpi(proto_tree *tree, tvbuff_t *tvb) else tLen = tByte & 0x03; pi = proto_tree_add_uint(tree, hf_wtp_tpi_type, - tvb, 0, tvb_length(tvb), tType); + tvb, 0, tvb_captured_length(tvb), tType); subTree = proto_item_add_subtree(pi, ett_tpilist); switch (tType) { case 0x00: /* Error*/ @@ -402,7 +402,7 @@ dissect_wtp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) printf("WTP packet %u: tree = %p, pdu = %s (%u) length: %u\n", pinfo->fd->num, tree, val_to_str(pdut, vals_wtp_pdu_type, "Unknown PDU type 0x%x"), - pdut, tvb_length(tvb)); + pdut, tvb_captured_length(tvb)); #endif /* Develop the string to put in the Info column */ |