summaryrefslogtreecommitdiff
path: root/epan/dissectors
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-coseventcomm.c2
-rw-r--r--epan/dissectors/packet-cosnaming.c2
-rw-r--r--epan/dissectors/packet-gias.c2
-rw-r--r--epan/dissectors/packet-parlay.c2
-rw-r--r--epan/dissectors/packet-tango.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-coseventcomm.c b/epan/dissectors/packet-coseventcomm.c
index faa6c67bc5..92224d2580 100644
--- a/epan/dissectors/packet-coseventcomm.c
+++ b/epan/dissectors/packet-coseventcomm.c
@@ -341,7 +341,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs
*/
if (ptree) {
- ti = proto_tree_add_item(ptree, proto_coseventcomm, tvb, *offset, -1, ENC_NA);
+ ti = proto_tree_add_item(ptree, proto_coseventcomm, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA);
tree = proto_item_add_subtree(ti, ett_coseventcomm);
}
return tree;
diff --git a/epan/dissectors/packet-cosnaming.c b/epan/dissectors/packet-cosnaming.c
index d9f5929b03..4c9b28ba1c 100644
--- a/epan/dissectors/packet-cosnaming.c
+++ b/epan/dissectors/packet-cosnaming.c
@@ -874,7 +874,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs
*/
if (ptree) {
- ti = proto_tree_add_item(ptree, proto_cosnaming, tvb, *offset, -1, ENC_NA);
+ ti = proto_tree_add_item(ptree, proto_cosnaming, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA);
tree = proto_item_add_subtree(ti, ett_cosnaming);
}
return tree;
diff --git a/epan/dissectors/packet-gias.c b/epan/dissectors/packet-gias.c
index 2d43c1c6b0..dc35867aa4 100644
--- a/epan/dissectors/packet-gias.c
+++ b/epan/dissectors/packet-gias.c
@@ -7028,7 +7028,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs
*/
if (ptree) {
- ti = proto_tree_add_item(ptree, proto_gias, tvb, *offset, -1, ENC_NA);
+ ti = proto_tree_add_item(ptree, proto_gias, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA);
tree = proto_item_add_subtree(ti, ett_gias);
}
return tree;
diff --git a/epan/dissectors/packet-parlay.c b/epan/dissectors/packet-parlay.c
index 959f4003cc..f5f660b602 100644
--- a/epan/dissectors/packet-parlay.c
+++ b/epan/dissectors/packet-parlay.c
@@ -56909,7 +56909,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs
*/
if (ptree) {
- ti = proto_tree_add_item(ptree, proto_parlay, tvb, *offset, -1, ENC_NA);
+ ti = proto_tree_add_item(ptree, proto_parlay, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA);
tree = proto_item_add_subtree(ti, ett_parlay);
}
return tree;
diff --git a/epan/dissectors/packet-tango.c b/epan/dissectors/packet-tango.c
index 5d84a12b9b..38e40fce70 100644
--- a/epan/dissectors/packet-tango.c
+++ b/epan/dissectors/packet-tango.c
@@ -2445,7 +2445,7 @@ start_dissecting(tvbuff_t *tvb, packet_info *pinfo, proto_tree *ptree, int *offs
*/
if (ptree) {
- ti = proto_tree_add_item(ptree, proto_tango, tvb, *offset, -1, ENC_NA);
+ ti = proto_tree_add_item(ptree, proto_tango, tvb, *offset, tvb_reported_length_remaining(tvb, *offset), ENC_NA);
tree = proto_item_add_subtree(ti, ett_tango);
}
return tree;