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-nbipx.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-nbipx.c')
-rw-r--r-- | packet-nbipx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-nbipx.c b/packet-nbipx.c index 30e0a97d40..420bf4a637 100644 --- a/packet-nbipx.c +++ b/packet-nbipx.c @@ -2,7 +2,7 @@ * Routines for NetBIOS over IPX packet disassembly * Gilbert Ramirez <gram@xiexie.org> * - * $Id: packet-nbipx.c,v 1.25 2000/11/10 21:29:27 gram Exp $ + * $Id: packet-nbipx.c,v 1.26 2000/11/13 08:58:03 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -269,7 +269,7 @@ dissect_nbipx_dg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) return; offset += NETBIOS_NAME_LEN; - if (tvb_length_remaining(tvb, offset) != 0) { + if (tvb_offset_exists(tvb, offset)) { next_tvb = tvb_new_subset(tvb, offset, -1, -1); tvb_compat(next_tvb, &next_pd, &next_offset); dissect_smb(next_pd, next_offset, pinfo->fd, tree, @@ -417,7 +417,7 @@ dissect_nwlink_dg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) offset += 68; - if (tvb_length_remaining(tvb, offset) != 0) { + if (tvb_offset_exists(tvb, offset)) { next_tvb = tvb_new_subset(tvb, offset, -1, -1); switch (packet_type) { |