aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sdp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-13 08:58:17 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-13 08:58:17 +0000
commit71a13e491fa5531e4d5edc49940af15cca1bfeb5 (patch)
treef490426cc9cf304561779db94f5dbc3eef6c5395 /packet-sdp.c
parent0a17fbe67357852350b670f821aeeaf34108840f (diff)
Use "tvb_offset_exists()" rather than "tvb_length_remaining()" to check
whether there's any data left in the tvbuff starting at a specified offset. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2636 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sdp.c')
-rw-r--r--packet-sdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-sdp.c b/packet-sdp.c
index 53c7048f21..0dfc80b311 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.14 2000/11/13 01:43:02 guy Exp $
+ * $Id: packet-sdp.c,v 1.15 2000/11/13 08:58:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -98,7 +98,7 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* Show the SDP message a line at a time.
*/
section = 0;
- while (tvb_length_remaining(tvb, offset)) {
+ while (tvb_offset_exists(tvb, offset)) {
/*
* Find the end of the line.
*/