diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-13 08:58:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-13 08:58:17 +0000 |
commit | 9985115b8baf5bb77f376647f505a7892ba61028 (patch) | |
tree | f490426cc9cf304561779db94f5dbc3eef6c5395 /packet-nntp.c | |
parent | ead1cadaf3100560e373cc7395d09744d3288ef4 (diff) | |
download | wireshark-9985115b8baf5bb77f376647f505a7892ba61028.tar.gz wireshark-9985115b8baf5bb77f376647f505a7892ba61028.tar.bz2 wireshark-9985115b8baf5bb77f376647f505a7892ba61028.zip |
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
Diffstat (limited to 'packet-nntp.c')
-rw-r--r-- | packet-nntp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-nntp.c b/packet-nntp.c index 5d2580965d..4ca64f616a 100644 --- a/packet-nntp.c +++ b/packet-nntp.c @@ -2,7 +2,7 @@ * Routines for nntp packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-nntp.c,v 1.14 2000/11/09 10:56:32 guy Exp $ + * $Id: packet-nntp.c,v 1.15 2000/11/13 08:58:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -105,7 +105,7 @@ dissect_nntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * matching request was, although the latter requires us to * know what the matching request was.... */ - while (tvb_length_remaining(tvb, offset)) { + while (tvb_offset_exists(tvb, offset)) { /* * Find the end of the line. */ |