aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-12-26 23:33:25 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-12-26 23:33:25 +0000
commit67e11b2badf1a32f34db7675444cbc1b6d4d3b09 (patch)
tree839894fa879cbb8717ca83daabb61d6238159f31
parentb149d8ddfc80ca04b229da3abda2a03cb59abb5b (diff)
Check that the length of an AVP is >= 6, not just that it's non-zero.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9449 f5534014-38df-0310-8fa8-9805f1628bb7
-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;