aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isakmp.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-10-02 18:38:50 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-10-02 18:38:50 +0000
commit6b006c76a438d01171b09f9778baa3209a304ff8 (patch)
treed50b9ea395d807f34dce74fe2f137932123d4266 /packet-isakmp.c
parent7df9d99be6c253af16c5dcf5cd5411faabd571da (diff)
Don't trust data in packet.
svn path=/trunk/; revision=2474
Diffstat (limited to 'packet-isakmp.c')
-rw-r--r--packet-isakmp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/packet-isakmp.c b/packet-isakmp.c
index a945adcc4d..f8272bf022 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.26 2000/08/13 14:08:18 deniel Exp $
+ * $Id: packet-isakmp.c,v 1.27 2000/10/02 18:38:50 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -618,6 +618,11 @@ dissect_transform(const u_char *pd, int offset, frame_data *fd,
offset += pack_len;
length -= pack_len;
}
+ if (!IS_DATA_IN_FRAME(offset)) {
+ proto_tree_add_text(ntree, NullTVB, 0, 0,
+ "Bad Offset: %u", offset);
+ return;
+ }
}
if (hdr->next_payload < NUM_LOAD_TYPES) {