aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gprs-llc.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2007-10-11 21:23:14 +0000
committerAnders Broman <anders.broman@ericsson.com>2007-10-11 21:23:14 +0000
commit0b4529008d9051686bc942630c852404aeb3147b (patch)
tree86251ed1df6fc00c14dc668435a9192c1e4c9109 /epan/dissectors/packet-gprs-llc.c
parentc1484a08dfaa778cc070cad795fbc76b60d3417b (diff)
Implement some of the minor possible speed improvment patches.
svn path=/trunk/; revision=23150
Diffstat (limited to 'epan/dissectors/packet-gprs-llc.c')
-rw-r--r--epan/dissectors/packet-gprs-llc.c4
1 files changed, 2 insertions, 2 deletions
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,