aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bacnet.c
diff options
context:
space:
mode:
authorAndersBroman <a.broman@bredband.net>2015-04-15 17:20:35 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-15 15:22:42 +0000
commit05c0152370cbe084193ad2946e6fc96a1017c08e (patch)
tree3214e835a86507969b9cf0a93391fcaa51e56c3a /epan/dissectors/packet-bacnet.c
parentd2e880eab134e4414b143b6e03767bf6424b749c (diff)
Replcae deprecated API tvb_length with tvb_reported_length or tvb_captured
length. Change-Id: Id42f3409a32e202528d350f7afde7376e411fc51 Reviewed-on: https://code.wireshark.org/review/8076 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-bacnet.c')
-rw-r--r--epan/dissectors/packet-bacnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bacnet.c b/epan/dissectors/packet-bacnet.c
index 15f9311947..6286332cf3 100644
--- a/epan/dissectors/packet-bacnet.c
+++ b/epan/dissectors/packet-bacnet.c
@@ -348,7 +348,7 @@ dissect_bacnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
vendor_id, next_tvb, pinfo, bacnet_tree)) {
/* we parsed it so skip over length and we are done */
/* Note: offset has now been bumped for message type and vendor id so we take that out of our next_tvb size */
- offset += tvb_length(next_tvb) -3;
+ offset += tvb_reported_length(next_tvb) -3;
}
}
/* Performance Index (in I-Could-Be-Router-To-Network) */