aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-direct.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-smb-direct.c')
-rw-r--r--epan/dissectors/packet-smb-direct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smb-direct.c b/epan/dissectors/packet-smb-direct.c
index 9cd1d064fb..6f107550f1 100644
--- a/epan/dissectors/packet-smb-direct.c
+++ b/epan/dissectors/packet-smb-direct.c
@@ -385,8 +385,8 @@ dissect_smb_direct(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
}
if (data_length <= (guint32)len) {
- next_tvb = tvb_new_subset(tvb, data_offset,
- data_length, data_length);
+ next_tvb = tvb_new_subset_length(tvb, data_offset,
+ data_length);
}
if (next_tvb != NULL) {