aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee17221.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ieee17221.c')
-rw-r--r--epan/dissectors/packet-ieee17221.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee17221.c b/epan/dissectors/packet-ieee17221.c
index 7d01eddc53..d17f0c57ce 100644
--- a/epan/dissectors/packet-ieee17221.c
+++ b/epan/dissectors/packet-ieee17221.c
@@ -3236,7 +3236,7 @@ dissect_17221_aecp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aecp_tree)
}
else
{
- next_tvb = tvb_new_subset(tvb, 28, -1, -1);
+ next_tvb = tvb_new_subset_remaining(tvb, 28);
dissect_17221_aem(next_tvb, pinfo, aecp_tree);
}
break;
@@ -3247,7 +3247,7 @@ dissect_17221_aecp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *aecp_tree)
/* on command descriptor is value to write
* on response descriptor is command value if successful
* or old value if unsuccessful */
- next_tvb = tvb_new_subset(tvb, 28, -1, -1);
+ next_tvb = tvb_new_subset_remaining(tvb, 28);
dissect_17221_aem(next_tvb, pinfo, aecp_tree);
break;
case AECP_COMMAND_ACQUIRE_ENTITY: