From 9985115b8baf5bb77f376647f505a7892ba61028 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 13 Nov 2000 08:58:17 +0000 Subject: 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. svn path=/trunk/; revision=2636 --- packet-sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-sdp.c') 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 * Liberally copied from packet-http.c, by Guy Harris * - * $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 @@ -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. */ -- cgit v1.2.3