aboutsummaryrefslogtreecommitdiffstats
path: root/packet-radius.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-02-25 21:11:20 +0000
committerGuy Harris <guy@alum.mit.edu>2002-02-25 21:11:20 +0000
commit135cc45809e16c77c0e7d926e87c2b50058c125b (patch)
treeffe43fbaafbcf06c97d8a90a371703a6c697186c /packet-radius.c
parent0a861db40b91ad064dfe9efc27875c9f76dadb0c (diff)
downloadwireshark-135cc45809e16c77c0e7d926e87c2b50058c125b.tar.gz
wireshark-135cc45809e16c77c0e7d926e87c2b50058c125b.tar.bz2
wireshark-135cc45809e16c77c0e7d926e87c2b50058c125b.zip
Small fix from Adam Sulmicki to an off-by-2 problem.
svn path=/trunk/; revision=4804
Diffstat (limited to 'packet-radius.c')
-rw-r--r--packet-radius.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-radius.c b/packet-radius.c
index e64e4aaa62..f295081434 100644
--- a/packet-radius.c
+++ b/packet-radius.c
@@ -2,7 +2,7 @@
* Routines for RADIUS packet disassembly
* Copyright 1999 Johan Feyaerts
*
- * $Id: packet-radius.c,v 1.44 2002/02/25 07:13:28 guy Exp $
+ * $Id: packet-radius.c,v 1.45 2002/02/25 21:11:20 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -907,7 +907,7 @@ void dissect_attribute_value_pairs(tvbuff_t *tvb, int offset,proto_tree *tree,
tvbuff_t *next_tvb;
proto_tree_add_text(tree, tvb,offset,2,"t:%s(%u) l:%u",
avptpstrval,avph.avp_type,avph.avp_length);
- next_tvb = tvb_new_subset(tvb, offset+2,avph.avp_length, -1);
+ next_tvb = tvb_new_subset(tvb, offset+2,avph.avp_length-2, -1);
call_dissector(eap_handle, next_tvb, pinfo, tree);
} else
proto_tree_add_text(tree, tvb,offset,avph.avp_length,