diff options
author | Dario Lombardo <lomato@gmail.com> | 2014-06-17 17:45:00 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-06-18 14:14:58 +0000 |
commit | 246fe2ca4c67d8c98caa84e2f57694f6322e2f96 (patch) | |
tree | 5f8651517a3423cce11c50e18371d8a73c3c7665 /epan/dissectors/packet-smb-pipe.c | |
parent | 971ffd683ea23362bd8009567ff7860371e6e2cc (diff) |
Fixup: tvb_* -> tvb_captured
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f
Reviewed-on: https://code.wireshark.org/review/2377
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r-- | epan/dissectors/packet-smb-pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-smb-pipe.c b/epan/dissectors/packet-smb-pipe.c index aabb34fc45..325924cec4 100644 --- a/epan/dissectors/packet-smb-pipe.c +++ b/epan/dissectors/packet-smb-pipe.c @@ -2525,7 +2525,7 @@ dissect_response_data(tvbuff_t *tvb, packet_info *pinfo, int convert, proto_tree_add_text(data_tree, tvb, offset, -1, "Data (no descriptor available)"); } - offset += tvb_length_remaining(tvb, offset); + offset += tvb_captured_length_remaining(tvb, offset); } else { /* * If we have an entry count, show all the entries, @@ -3254,7 +3254,7 @@ dissect_pipe_dcerpc(tvbuff_t *d_tvb, packet_info *pinfo, proto_tree *parent_tree pinfo->desegment_offset = 0; pinfo->desegment_len = 0; reported_len = tvb_reported_length(d_tvb); - if(smb_dcerpc_reassembly && tvb_length(d_tvb) >= reported_len){ + if(smb_dcerpc_reassembly && tvb_captured_length(d_tvb) >= reported_len){ pinfo->can_desegment=2; } @@ -3498,7 +3498,7 @@ dissect_pipe_smb(tvbuff_t *sp_tvb, tvbuff_t *s_tvb, tvbuff_t *pd_tvb, * anything.) */ if (sp_tvb != NULL) - sp_len = tvb_length(sp_tvb); + sp_len = tvb_captured_length(sp_tvb); else sp_len = 0; if (tree) { @@ -3511,7 +3511,7 @@ dissect_pipe_smb(tvbuff_t *sp_tvb, tvbuff_t *s_tvb, tvbuff_t *pd_tvb, /* * Do we have any setup words at all? */ - if (s_tvb != NULL && tvb_length(s_tvb) != 0) { + if (s_tvb != NULL && tvb_captured_length(s_tvb) != 0) { /* * Yes. The first of them is the function. */ |