aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-media.c
diff options
context:
space:
mode:
authorAndersBroman <anders.broman@ericsson.com>2014-11-21 15:54:59 +0100
committerAnders Broman <a.broman58@gmail.com>2014-11-21 15:05:33 +0000
commitf2fc562edaa71316b0da541a8c95e29953cdd944 (patch)
tree371fe8ac3eec3cf591682105ac74f54fe5eaac18 /epan/dissectors/packet-media.c
parent96fb34706b972c55706f0be35172b0a248263e3c (diff)
Replace tvb_length()
Change-Id: I0b5ad4d588f0b658abaf3892d08d6520ecd2f645 Reviewed-on: https://code.wireshark.org/review/5431 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-media.c')
-rw-r--r--epan/dissectors/packet-media.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-media.c b/epan/dissectors/packet-media.c
index 798e1386a8..1305b345d3 100644
--- a/epan/dissectors/packet-media.c
+++ b/epan/dissectors/packet-media.c
@@ -50,14 +50,14 @@ dissect_media(tvbuff_t *tvb, packet_info *pinfo , proto_tree *tree, void* data)
heur_dtbl_entry_t *hdtbl_entry;
if (dissector_try_heuristic(heur_subdissector_list, tvb, pinfo, tree, &hdtbl_entry, data)) {
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
/* Add media type to the INFO column if it is visible */
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)", (pinfo->match_string) ? pinfo->match_string : "");
if (tree) {
- if ( (bytes = tvb_length(tvb)) > 0 )
+ if ( (bytes = tvb_reported_length(tvb)) > 0 )
{
ti = proto_tree_add_item(tree, proto_media, tvb, 0, -1, ENC_NA);
media_tree = proto_item_add_subtree(ti, ett_media);
@@ -78,7 +78,7 @@ dissect_media(tvbuff_t *tvb, packet_info *pinfo , proto_tree *tree, void* data)
}
}
- return tvb_length(tvb);
+ return tvb_reported_length(tvb);
}
void