aboutsummaryrefslogtreecommitdiffstats
path: root/packet-eap.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-07 23:49:58 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-09-07 23:49:58 +0000
commit2d3a5612f6b3b0c2359153aa8fe8e230a8d9a3a9 (patch)
tree73d4cd9f049ec7ccc438498388735a29ee687583 /packet-eap.c
parentf4f1c891dce23cf809126fe2e52a2f9f4612b2ef (diff)
From Jouni Malinen, bug fix for EAP NAK packets.
svn path=/trunk/; revision=6223
Diffstat (limited to 'packet-eap.c')
-rw-r--r--packet-eap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-eap.c b/packet-eap.c
index c25d363cd1..3a2448d8b1 100644
--- a/packet-eap.c
+++ b/packet-eap.c
@@ -2,7 +2,7 @@
* Routines for EAP Extensible Authentication Protocol dissection
* RFC 2284
*
- * $Id: packet-eap.c,v 1.28 2002/08/28 21:00:12 jmayer Exp $
+ * $Id: packet-eap.c,v 1.29 2002/09/07 23:49:58 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -414,8 +414,9 @@ dissect_eap_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
**********************************************************************/
case EAP_TYPE_NAK:
if (tree) {
- proto_tree_add_uint(eap_tree, hf_eap_type_nak, tvb,
- offset, size, eap_type);
+ proto_tree_add_item(eap_tree, hf_eap_type_nak, tvb,
+ offset, 1, TRUE);
+ offset++;
}
break;
/*********************************************************************
@@ -806,7 +807,7 @@ proto_register_eap(void)
"Type", "eap.type", FT_UINT8, BASE_DEC,
VALS(eap_type_vals), 0x0, "", HFILL }},
{ &hf_eap_type_nak, {
- "Desired Auth Type", "eap.type", FT_UINT8, BASE_DEC,
+ "Desired Auth Type", "eap.desired_type", FT_UINT8, BASE_DEC,
VALS(eap_type_vals), 0x0, "", HFILL }},
{ &hf_eaptls_fragment,
{ "EAP-TLS Fragment", "eaptls.fragment",