summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-mdshdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-mdshdr.c')
-rw-r--r--epan/dissectors/packet-mdshdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mdshdr.c b/epan/dissectors/packet-mdshdr.c
index ee787e46d1..7c57f915cc 100644
--- a/epan/dissectors/packet-mdshdr.c
+++ b/epan/dissectors/packet-mdshdr.c
@@ -232,7 +232,7 @@ dissect_mdshdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tvb_length(tvb) >= MDSHDR_HEADER_SIZE + pktlen
&& 0 != pktlen /*if something wrong*/) {
- next_tvb = tvb_new_subset(tvb, MDSHDR_HEADER_SIZE, pktlen, pktlen);
+ next_tvb = tvb_new_subset_length(tvb, MDSHDR_HEADER_SIZE, pktlen);
/* XXX what to do with the rest of this frame? --ArtemTamazov */
}
else {