aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-sync.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-22 09:59:50 -0700
committerEvan Huus <eapache@gmail.com>2015-06-22 20:43:34 +0000
commitbe6fb606915f4ccc68a62195619d176cd62f79f9 (patch)
treeedd4b63c557923d1196dd779ac91ee1e1bae90ef /epan/dissectors/packet-sync.c
parent45872b9f7bf10476e48187f4b699c6f44943f22a (diff)
Remove a bunch of deprecated tvb_length calls
Change-Id: I9362e0fdc4519ba5f3d656152966e7030f478839 Reviewed-on: https://code.wireshark.org/review/9022 Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-sync.c')
-rw-r--r--epan/dissectors/packet-sync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-sync.c b/epan/dissectors/packet-sync.c
index 9dbd31447b..6f346903eb 100644
--- a/epan/dissectors/packet-sync.c
+++ b/epan/dissectors/packet-sync.c
@@ -87,11 +87,11 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
if ( type > 3 )
return 0;
- if ( type == 0 && tvb_length(tvb) < 18) {
+ if ( type == 0 && tvb_captured_length(tvb) < 18) {
return 0;
- } else if ( type == 1 && tvb_length(tvb) < 11 ) {
+ } else if ( type == 1 && tvb_captured_length(tvb) < 11 ) {
return 0;
- } else if ( type == 3 && tvb_length(tvb) < 19 ) {
+ } else if ( type == 3 && tvb_captured_length(tvb) < 19 ) {
return 0;
}
@@ -219,7 +219,7 @@ dissect_sync(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
break;
}
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}