aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-pipe.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-11-08 22:40:20 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-11-08 22:40:20 +0000
commit90753a169e2dd869298bd39012eadaa214f203a0 (patch)
treebb928b8f8ceb64d13eb7bb1d7323c19a2feb6245 /epan/dissectors/packet-smb-pipe.c
parent94859ac29b24f68349a691b39c37299b552795df (diff)
Apply yet another set of the optimization patches:
When offset parameter is 0 replace tvb_bytes_exist() with the faster tvb_length(). non heuristic dissectors svn path=/trunk/; revision=23405
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r--epan/dissectors/packet-smb-pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-smb-pipe.c b/epan/dissectors/packet-smb-pipe.c
index 81079aaeed..12cbca6eba 100644
--- a/epan/dissectors/packet-smb-pipe.c
+++ b/epan/dissectors/packet-smb-pipe.c
@@ -3281,7 +3281,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_bytes_exist(d_tvb, 0, reported_len)){
+ if(smb_dcerpc_reassembly && tvb_length(d_tvb) >= reported_len){
pinfo->can_desegment=2;
}