aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ldss.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-06-23 11:24:48 -0700
committerEvan Huus <eapache@gmail.com>2015-06-23 18:25:52 +0000
commit8bc294c0d12e742d8c539177a683eff16653b31b (patch)
tree3a309f71e73889bbe39d1df18417c250fa6a686b /epan/dissectors/packet-ldss.c
parentd7b286c7941bb0adf0566844637ffcc245bf1db1 (diff)
Replace more deprecated tvb_length calls
The return values of new-style dissectors always use the captured length, so replace those automagically with sed. Change-Id: Ic43072ee4a80d433cd4264444583a0e670adc26a Reviewed-on: https://code.wireshark.org/review/9065 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ldss.c')
-rw-r--r--epan/dissectors/packet-ldss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ldss.c b/epan/dissectors/packet-ldss.c
index 7e5b4f06ec..3188d4fb51 100644
--- a/epan/dissectors/packet-ldss.c
+++ b/epan/dissectors/packet-ldss.c
@@ -434,7 +434,7 @@ dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
highest_num_seen = pinfo->fd->num;
}
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
/* Transfers happen in response to broadcasts, they are always TCP and are
@@ -777,7 +777,7 @@ dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
prepare_ldss_transfer_conv(transfer_info->broadcast);
}
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
static gboolean