diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-23 17:30:22 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-24 00:31:25 +0000 |
commit | 9b5b7c1a9074c7d64bd07fe68377d9ad06ccbc2a (patch) | |
tree | fbb55ae5fdfb2799424c6ad919f0ef1c7429392d /epan/next_tvb.c | |
parent | 893e1e516ae58d662aeaec78f86838eb9d3246c5 (diff) | |
download | wireshark-9b5b7c1a9074c7d64bd07fe68377d9ad06ccbc2a.tar.gz |
Remove deprecated tvb_length calls
Trust that the files in epan/ immediately (not dissectors) know what they're
doing so just blindly convert them to captured length.
Change-Id: I872f7d58b2e15ae82c75fd56f4873996fbc97be7
Reviewed-on: https://code.wireshark.org/review/9083
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/next_tvb.c')
-rw-r--r-- | epan/next_tvb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/next_tvb.c b/epan/next_tvb.c index 2a6512c3f3..dd79cc91dc 100644 --- a/epan/next_tvb.c +++ b/epan/next_tvb.c @@ -104,7 +104,7 @@ void next_tvb_call(next_tvb_list_t *list, packet_info *pinfo, proto_tree *tree, item = list->first; while (item) { - if (item->tvb && tvb_length(item->tvb)) { + if (item->tvb && tvb_captured_length(item->tvb)) { switch (item->type) { case NTVB_HANDLE: call_dissector((item->handle) ? item->handle : ((handle) ? handle : data_handle), item->tvb, pinfo, (item->tree) ? item->tree : tree); |