aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isakmp.c
diff options
context:
space:
mode:
authoritojun <itojun@f5534014-38df-0310-8fa8-9805f1628bb7>2000-12-12 08:25:37 +0000
committeritojun <itojun@f5534014-38df-0310-8fa8-9805f1628bb7>2000-12-12 08:25:37 +0000
commitb697a0a54fac6cbbc662e53f32028b8362768322 (patch)
treecdaafad51223d965c27a244e720a4af8739ce799 /packet-isakmp.c
parenta2443dac241ab6f40813a58db7d443591f9a5f9b (diff)
remove incorrect bound check. the check can fail on legal packet, at the
very end of the packet. may need to revisit. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2749 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-isakmp.c')
-rw-r--r--packet-isakmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-isakmp.c b/packet-isakmp.c
index eef796900c..6d34ae9462 100644
--- a/packet-isakmp.c
+++ b/packet-isakmp.c
@@ -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) {