diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-11-13 08:58:17 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-11-13 08:58:17 +0000 |
commit | 71a13e491fa5531e4d5edc49940af15cca1bfeb5 (patch) | |
tree | f490426cc9cf304561779db94f5dbc3eef6c5395 /packet-smtp.c | |
parent | 0a17fbe67357852350b670f821aeeaf34108840f (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-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. |