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-smtp.c | |
parent | ead1cadaf3100560e373cc7395d09744d3288ef4 (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.
svn path=/trunk/; revision=2636
Diffstat (limited to 'packet-smtp.c')
-rw-r--r-- | packet-smtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smtp.c b/packet-smtp.c index 85ace8b9b5..45a5f6d87a 100644 --- a/packet-smtp.c +++ b/packet-smtp.c @@ -1,7 +1,7 @@ /* packet-smtp.c * Routines for SMTP packet disassembly * - * $Id: packet-smtp.c,v 1.10 2000/11/12 03:13:44 guy Exp $ + * $Id: packet-smtp.c,v 1.11 2000/11/13 08:58:13 guy Exp $ * * Copyright (c) 2000 by Richard Sharpe <rsharpe@ns.aus.com> * @@ -435,7 +435,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * Message body. * Put its lines into the protocol tree, a line at a time. */ - while (tvb_length_remaining(tvb, offset) != 0) { + while (tvb_offset_exists(tvb, offset)) { /* * Find the end of the line. @@ -504,7 +504,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * that doesn't have a continuation indication on it. */ - while (tvb_length_remaining(tvb, offset) != 0) { + while (tvb_offset_exists(tvb, offset)) { /* * Find the end of the line. |