aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-babel.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-babel.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-babel.c')
-rw-r--r--epan/dissectors/packet-babel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-babel.c b/epan/dissectors/packet-babel.c
index b18acc0c05..cd1c1d9c42 100644
--- a/epan/dissectors/packet-babel.c
+++ b/epan/dissectors/packet-babel.c
@@ -207,7 +207,7 @@ dissect_babel(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U
guint8 version;
guint16 bodylen;
- if (tvb_length(tvb) < 4)
+ if (tvb_captured_length(tvb) < 4)
return 0;
if (tvb_get_guint8(tvb, 0) != 42)