diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-31 09:47:01 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-12-31 09:47:01 +0000 |
commit | 88909c6ecaaec78e1aecc5587f13d58d86700802 (patch) | |
tree | 05d0be58a453f6095e02d1ff7c6e684d83f415ba /packet-sdp.c | |
parent | cfee9220079a0d1803a0c198c23a9d8564fd4c36 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9504 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sdp.c')
-rw-r--r-- | packet-sdp.c | 5 |
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; } |