summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-dmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-dmp.c')
-rw-r--r--epan/dissectors/packet-dmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dmp.c b/epan/dissectors/packet-dmp.c
index 8717cad6a8..e685c37842 100644
--- a/epan/dissectors/packet-dmp.c
+++ b/epan/dissectors/packet-dmp.c
@@ -2084,7 +2084,7 @@ static gint dissect_dmp_ext_addr (tvbuff_t *tvb, packet_info *pinfo,
}
if (type == ASN1_BER) {
- tvbuff_t *next_tvb = tvb_new_subset(tvb, offset, length, length);
+ tvbuff_t *next_tvb = tvb_new_subset_length(tvb, offset, length);
dissect_p1_ORName (FALSE, next_tvb, 0, &asn1_ctx, ext_tree,
hf_addr_ext_asn1_ber);