aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-msrp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-07-10 22:13:03 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-07-10 22:13:03 +0000
commit94bf8a52bebf47460e3949432e82aaa9ad671423 (patch)
tree4cdc2f66f6e435d662ff8ffa3ecff5027b5ab889 /epan/dissectors/packet-msrp.c
parent5e5b778a67ed8f26aa3d8f81811dd165ce64646c (diff)
From Jaap:
Limit the search to the line. svn path=/trunk/; revision=37955
Diffstat (limited to 'epan/dissectors/packet-msrp.c')
-rw-r--r--epan/dissectors/packet-msrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-msrp.c b/epan/dissectors/packet-msrp.c
index 13b57fc17a..06d89e219a 100644
--- a/epan/dissectors/packet-msrp.c
+++ b/epan/dissectors/packet-msrp.c
@@ -359,7 +359,7 @@ check_msrp_header(tvbuff_t *tvb)
linelen = tvb_find_line_end(tvb, 0, -1, &next_offset, FALSE);
/* Find the first SP */
- space_offset = tvb_find_guint8(tvb, 0, -1, ' ');
+ space_offset = tvb_find_guint8(tvb, 0, linelen, ' ');
if (space_offset <= 0) {
/*
@@ -374,7 +374,7 @@ check_msrp_header(tvbuff_t *tvb)
token_1_len = space_offset;
token_2_start = space_offset + 1;
- space_offset = tvb_find_guint8(tvb, token_2_start, -1, ' ');
+ space_offset = tvb_find_guint8(tvb, token_2_start, linelen, ' ');
if (space_offset == -1) {
/*
* There's no space after the second token, so we don't