aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tds.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-tds.c')
-rw-r--r--epan/dissectors/packet-tds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-tds.c b/epan/dissectors/packet-tds.c
index 48e811fb4d..b438b18f7f 100644
--- a/epan/dissectors/packet-tds.c
+++ b/epan/dissectors/packet-tds.c
@@ -1406,7 +1406,7 @@ netlib_check_login_pkt(tvbuff_t *tvb, guint offset, packet_info *pinfo, guint8 t
{
guint tds_major, bytes_avail;
- bytes_avail = tvb_length(tvb) - offset;
+ bytes_avail = tvb_captured_length(tvb) - offset;
/*
* we have two login packet styles, one for TDS 4.2 and 5.0
*/
@@ -2110,7 +2110,7 @@ dissect_tds_rpc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
tree = proto_item_add_subtree(item, ett_tds_message);
dissect_tds_all_headers(tvb, &offset, pinfo, tree);
- while(tvb_length_remaining(tvb, offset) > 0) {
+ while(tvb_captured_length_remaining(tvb, offset) > 0) {
/*
* RPC name.
*/
@@ -2149,7 +2149,7 @@ dissect_tds_rpc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset += 2;
/* dissect parameters */
- while(tvb_length_remaining(tvb, offset) > 0) {
+ while(tvb_captured_length_remaining(tvb, offset) > 0) {
gboolean plp;
len = tvb_get_guint8(tvb, offset);
@@ -2603,7 +2603,7 @@ dissect_tds_tcp_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *
* If we don't have even enough data for a Netlib header,
* just say it's not TDS.
*/
- if (tvb_length(tvb) < 8)
+ if (tvb_captured_length(tvb) < 8)
return FALSE;
/*