diff options
author | Evan Huus <eapache@gmail.com> | 2014-09-07 15:01:10 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-09-08 14:11:44 +0000 |
commit | c1bc1b6a83e17a79fc09cfdaac7cc5b60964379e (patch) | |
tree | f3657e249de71c7e7a24610186f579d7bdf005ef /epan/dissectors/packet-acn.c | |
parent | 64cabe9ed2990571cdc7c3ad425754a532f2d292 (diff) |
Convert some deprecated tvb_length calls
Change-Id: I6337f8e02a41106a363b9bf767bc4b3697442d41
Reviewed-on: https://code.wireshark.org/review/4027
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-acn.c')
-rw-r--r-- | epan/dissectors/packet-acn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-acn.c b/epan/dissectors/packet-acn.c index 124bf41141..d4a2183ded 100644 --- a/epan/dissectors/packet-acn.c +++ b/epan/dissectors/packet-acn.c @@ -456,7 +456,7 @@ is_acn(tvbuff_t *tvb) { static const char acn_packet_id[] = "ASC-E1.17\0\0\0"; /* must be 12 bytes */ - if (tvb_length(tvb) < (4+sizeof(acn_packet_id))) + if (tvb_captured_length(tvb) < (4+sizeof(acn_packet_id))) return FALSE; /* Check the bytes in octets 4 - 16 */ @@ -2756,7 +2756,7 @@ dissect_acn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (data_offset == old_offset) break; } } - return tvb_length(tvb); + return tvb_captured_length(tvb); } /******************************************************************************/ |