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-nbipx.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-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) { |