aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sscop.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-sscop.c')
-rw-r--r--epan/dissectors/packet-sscop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sscop.c b/epan/dissectors/packet-sscop.c
index d89fc23f7e..c598c080ac 100644
--- a/epan/dissectors/packet-sscop.c
+++ b/epan/dissectors/packet-sscop.c
@@ -323,7 +323,7 @@ dissect_sscop_and_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, d
* Therefore, we know that the captured length of the payload is
* equal to the length of the payload.
*/
- next_tvb = tvb_new_subset(tvb, 0, reported_length, reported_length);
+ next_tvb = tvb_new_subset_length(tvb, 0, reported_length);
if (sscop_info.type == SSCOP_SD)
{
call_dissector(payload_handle, next_tvb, pinfo, tree);