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-atalk.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-atalk.c')
-rw-r--r-- | packet-atalk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-atalk.c b/packet-atalk.c index 37daca638f..6eb0587fc6 100644 --- a/packet-atalk.c +++ b/packet-atalk.c @@ -1,7 +1,7 @@ /* packet-atalk.c * Routines for Appletalk packet disassembly (DDP, currently). * - * $Id: packet-atalk.c,v 1.42 2000/11/13 04:26:14 guy Exp $ + * $Id: packet-atalk.c,v 1.43 2000/11/13 08:57:57 guy Exp $ * * Simon Wilkinson <sxw@dcs.ed.ac.uk> * @@ -262,7 +262,7 @@ dissect_rtmp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { offset += 3 + nodelen; i = 1; - while (tvb_length_remaining(tvb, offset) != 0) { + while (tvb_offset_exists(tvb, offset)) { proto_tree *tuple_item, *tuple_tree; guint16 tuple_net; guint8 tuple_dist; |