aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tpkt.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-tpkt.c
parentc1484a08dfaa778cc070cad795fbc76b60d3417b (diff)
Implement some of the minor possible speed improvment patches.
svn path=/trunk/; revision=23150
Diffstat (limited to 'epan/dissectors/packet-tpkt.c')
-rw-r--r--epan/dissectors/packet-tpkt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tpkt.c b/epan/dissectors/packet-tpkt.c
index b53902a45b..fcd63f8f40 100644
--- a/epan/dissectors/packet-tpkt.c
+++ b/epan/dissectors/packet-tpkt.c
@@ -82,7 +82,7 @@ is_tpkt(tvbuff_t *tvb, int min_len)
return -1;
/* There should at least be 4 bytes left in the frame */
- if (!tvb_bytes_exist(tvb, 0, 4))
+ if (tvb_length(tvb) < 4)
return -1; /* there aren't */
/*
@@ -134,7 +134,7 @@ dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
* anyway.
*/
if (desegment && check_col(pinfo->cinfo, COL_INFO))
- col_add_str(pinfo->cinfo, COL_INFO, "");
+ col_set_str(pinfo->cinfo, COL_INFO, "");
while (tvb_reported_length_remaining(tvb, offset) != 0) {
/*