From 0b4529008d9051686bc942630c852404aeb3147b Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Thu, 11 Oct 2007 21:23:14 +0000 Subject: Implement some of the minor possible speed improvment patches. svn path=/trunk/; revision=23150 --- epan/dissectors/packet-gprs-llc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-gprs-llc.c') diff --git a/epan/dissectors/packet-gprs-llc.c b/epan/dissectors/packet-gprs-llc.c index e07aec756e..cf35ffca69 100644 --- a/epan/dissectors/packet-gprs-llc.c +++ b/epan/dissectors/packet-gprs-llc.c @@ -344,7 +344,7 @@ dissect_llcgprs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { if (check_col(pinfo->cinfo,COL_INFO)) { - col_add_str(pinfo->cinfo,COL_INFO,"Invalid packet - Protocol Discriminator bit is set to 1"); + col_set_str(pinfo->cinfo,COL_INFO,"Invalid packet - Protocol Discriminator bit is set to 1"); } return; } @@ -358,7 +358,7 @@ dissect_llcgprs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) length = tvb_reported_length(tvb); - if (tvb_bytes_exist(tvb, 0, length) && length >= 3) + if (tvb_length(tvb) >= length && length >= 3) { /* * We have all the packet data, including the full FCS, -- cgit v1.2.3