aboutsummaryrefslogtreecommitdiffstats
path: root/packet-l2tp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-12-26 23:33:25 +0000
committerGuy Harris <guy@alum.mit.edu>2003-12-26 23:33:25 +0000
commit2e2946db8eccc4674ba73653c162532a499189ef (patch)
tree839894fa879cbb8717ca83daabb61d6238159f31 /packet-l2tp.c
parentf849df17e656779e27f1e8be056cd7b8522a1198 (diff)
Check that the length of an AVP is >= 6, not just that it's non-zero.
svn path=/trunk/; revision=9449
Diffstat (limited to 'packet-l2tp.c')
-rw-r--r--packet-l2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-l2tp.c b/packet-l2tp.c
index 19fa62738d..a081391cc7 100644
--- a/packet-l2tp.c
+++ b/packet-l2tp.c
@@ -7,7 +7,7 @@
* Laurent Cazalet <laurent.cazalet@mailclub.net>
* Thomas Parvais <thomas.parvais@advalvas.be>
*
- * $Id: packet-l2tp.c,v 1.37 2003/01/14 18:57:07 guy Exp $
+ * $Id: packet-l2tp.c,v 1.38 2003/12/26 23:33:25 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -522,9 +522,9 @@ dissect_l2tp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
continue;
}
- if (avp_len == 0) {
+ if (avp_len < 6) {
proto_tree_add_text(l2tp_avp_tree, tvb, index, 0,
- "AVP length must not be zero");
+ "AVP length must be >= 6");
return;
}
index += 2;