remove incorrect bound check. the check can fail on legal packet, at the
authorJun-ichiro itojun Hagino <itojun@itojun.org>
Tue, 12 Dec 2000 08:25:37 +0000 (08:25 -0000)
committerJun-ichiro itojun Hagino <itojun@itojun.org>
Tue, 12 Dec 2000 08:25:37 +0000 (08:25 -0000)
very end of the packet.  may need to revisit.

svn path=/trunk/; revision=2749

packet-isakmp.c

index eef796900c73cb429349784049814fc96cc442ff..6d34ae94620a8d7a69cd005114f65520881b59ec 100644 (file)
@@ -3,7 +3,7 @@
  * (ISAKMP) (RFC 2408)
  * Brad Robel-Forrest <brad.robel-forrest@watchguard.com>
  *
- * $Id: packet-isakmp.c,v 1.30 2000/11/19 08:53:58 guy Exp $
+ * $Id: packet-isakmp.c,v 1.31 2000/12/12 08:25:37 itojun Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -624,11 +624,13 @@ dissect_transform(const u_char *pd, int offset, frame_data *fd,
       offset += pack_len;
       slength -= pack_len;
     }
+#if 0 /* the last byte will fail with this test */
     if (!IS_DATA_IN_FRAME(offset)) {
            proto_tree_add_text(ntree, NullTVB, 0, 0,
                            "Bad Offset: %u", offset);
            return;
     }
+#endif
   }
 
   if (hdr->next_payload < NUM_LOAD_TYPES) {