aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-31 09:47:01 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-31 09:47:01 +0000
commitf4e918fa43d2fa94af760ebd3ae0ceab3109245f (patch)
tree05d0be58a453f6095e02d1ff7c6e684d83f415ba
parent78302da55bc653113dfb4813c266c9176e2ac154 (diff)
Make the tvbuff for SDP lines have the line length as its length and
reported length, so we show the right error if we go past the end of the tvbuff. svn path=/trunk/; revision=9504
-rw-r--r--packet-sdp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/packet-sdp.c b/packet-sdp.c
index 67e0d25e39..0fb1d3bd97 100644
--- a/packet-sdp.c
+++ b/packet-sdp.c
@@ -4,7 +4,7 @@
* Jason Lango <jal@netapp.com>
* Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-sdp.c,v 1.39 2003/12/07 03:46:04 guy Exp $
+ * $Id: packet-sdp.c,v 1.40 2003/12/31 09:47:01 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -324,7 +324,8 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
linelen - tokenoffset));
g_free(string);
call_sdp_subdissector(tvb_new_subset(tvb,offset+tokenoffset,
- linelen-tokenoffset,-1),
+ linelen-tokenoffset,
+ linelen-tokenoffset),
hf,sub_ti,&transport_info),
offset = next_offset;
}