aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-macsec.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-macsec.c')
-rw-r--r--epan/dissectors/packet-macsec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-macsec.c b/epan/dissectors/packet-macsec.c
index e19f454871..b759cd8d4a 100644
--- a/epan/dissectors/packet-macsec.c
+++ b/epan/dissectors/packet-macsec.c
@@ -93,7 +93,7 @@ static int dissect_macsec(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
data_length = tvb_length(tvb) - sectag_length - icv_length;
icv_offset = data_length + data_offset;
- next_tvb = tvb_new_subset(tvb, data_offset, data_length, data_length);
+ next_tvb = tvb_new_subset_length(tvb, data_offset, data_length);
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MACSEC");
col_set_str(pinfo->cinfo, COL_INFO, "MACsec frame");