diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-01-19 23:59:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-01-19 23:59:03 +0000 |
commit | b6c6ff41067fb5f54c46c28ea1ba087fb05bb787 (patch) | |
tree | 1febcd06f301126711f2b9b87ea33779e30e3314 /packet-nbns.c | |
parent | 7504382c400e1b40f46d7d48f1890d67a66a3952 (diff) |
We no longer do explicit checks in low-level routines for running past
the end of the data in the packet, so we don't need to do those checks
in the callers of those routines - and thus don't need to do those
checks in the callers of *those* routines.
svn path=/trunk/; revision=4574
Diffstat (limited to 'packet-nbns.c')
-rw-r--r-- | packet-nbns.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/packet-nbns.c b/packet-nbns.c index 7f19b6c7be..76046a7bb8 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -3,7 +3,7 @@ * to when it had only NBNS) * Guy Harris <guy@alum.mit.edu> * - * $Id: packet-nbns.c,v 1.69 2002/01/07 00:57:46 guy Exp $ + * $Id: packet-nbns.c,v 1.70 2002/01/19 23:59:03 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -933,11 +933,6 @@ dissect_query_records(tvbuff_t *tvb, int cur_off, int nbns_data_offset, while (count-- > 0) { add_off = dissect_nbns_query(tvb, cur_off, nbns_data_offset, cinfo, qatree); - if (add_off <= 0) { - /* We ran past the end of the captured data in the - packet. */ - break; - } cur_off += add_off; } if (ti != NULL) @@ -965,11 +960,6 @@ dissect_answer_records(tvbuff_t *tvb, int cur_off, int nbns_data_offset, while (count-- > 0) { add_off = dissect_nbns_answer(tvb, cur_off, nbns_data_offset, cinfo, qatree, opcode); - if (add_off <= 0) { - /* We ran past the end of the captured data in the - packet. */ - break; - } cur_off += add_off; } if (ti != NULL) |