diff options
author | AndersBroman <a.broman@bredband.net> | 2015-04-16 13:31:57 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-04-16 11:36:43 +0000 |
commit | 95f138e407f2afa9a3b26859116a91b99ff25fbc (patch) | |
tree | 9bd87b48f0211891026e7d77b35152c56fd0593b /epan/dissectors/packet-classicstun.c | |
parent | 2d79f56df1bb779cf5628359c778adbc98dfbf6a (diff) |
Replace deprecated tvb_length APIs
Change-Id: Idfd3bed012e823de544fe4de483c8f095fc7c65d
Reviewed-on: https://code.wireshark.org/review/8086
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-classicstun.c')
-rw-r--r-- | epan/dissectors/packet-classicstun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-classicstun.c b/epan/dissectors/packet-classicstun.c index 789ff6db96..c5db4db3a4 100644 --- a/epan/dissectors/packet-classicstun.c +++ b/epan/dissectors/packet-classicstun.c @@ -231,7 +231,7 @@ dissect_classicstun(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d /* * First check if the frame is really meant for us. */ - len = tvb_length(tvb); + len = tvb_captured_length(tvb); /* First, make sure we have enough data to do the check. */ if (len < CLASSICSTUN_HDR_LEN) return 0; @@ -538,7 +538,7 @@ dissect_classicstun(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *d } } } - return tvb_length(tvb); + return tvb_reported_length(tvb); } |