From a40e52e2b612e7c3b62d87b42ec63ae8c4a4dd28 Mon Sep 17 00:00:00 2001 From: etxrab Date: Thu, 8 Nov 2007 22:40:20 +0000 Subject: 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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23405 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-ldp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ldp.c') diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index b382fdec3d..9a38d47b22 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -2393,7 +2393,7 @@ dissect_ldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * packets that happen to be going to or from the * LDP port but that aren't LDP packets. */ - if (!tvb_bytes_exist(tvb, 0, 2)) { + if (tvb_length(tvb) < 2) { /* * Not enough information to tell. */ -- cgit v1.2.3