aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_fast.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-10-02 14:38:13 (GMT)
committerJouni Malinen <j@w1.fi>2008-10-02 14:38:13 (GMT)
commit75cf93d2c5e53e850153f6cc8fe057a9897c724b (patch)
tree0e2b6afe765ae0852122da47840ee3bc2a133f8f /src/eap_peer/eap_fast.c
parent0930209dc2ea73734874954ec891d5ebc159b406 (diff)
downloadhostap-75cf93d2c5e53e850153f6cc8fe057a9897c724b.zip
hostap-75cf93d2c5e53e850153f6cc8fe057a9897c724b.tar.gz
hostap-75cf93d2c5e53e850153f6cc8fe057a9897c724b.tar.bz2
Fixed EAP-FAST peer not to add double Result TLV when ACKing PAC
Diffstat (limited to 'src/eap_peer/eap_fast.c')
-rw-r--r--src/eap_peer/eap_fast.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/eap_peer/eap_fast.c b/src/eap_peer/eap_fast.c
index 5bc1de0..8559ea8 100644
--- a/src/eap_peer/eap_fast.c
+++ b/src/eap_peer/eap_fast.c
@@ -506,6 +506,8 @@ static struct wpabuf * eap_fast_tlv_result(int status, int intermediate)
buf = wpabuf_alloc(sizeof(*result));
if (buf == NULL)
return NULL;
+ wpa_printf(MSG_DEBUG, "EAP-FAST: Add %sResult TLV(status=%d)",
+ intermediate ? "Intermediate " : "", status);
result = wpabuf_put(buf, sizeof(*result));
result->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY |
(intermediate ?
@@ -527,12 +529,7 @@ static struct wpabuf * eap_fast_tlv_pac_ack(void)
if (buf == NULL)
return NULL;
- res = wpabuf_put(buf, sizeof(*res));
- res->tlv_type = host_to_be16(EAP_TLV_RESULT_TLV |
- EAP_TLV_TYPE_MANDATORY);
- res->length = host_to_be16(sizeof(*res) - sizeof(struct eap_tlv_hdr));
- res->status = host_to_be16(EAP_TLV_RESULT_SUCCESS);
-
+ wpa_printf(MSG_DEBUG, "EAP-FAST: Add PAC TLV (ack)");
ack = wpabuf_put(buf, sizeof(*ack));
ack->tlv_type = host_to_be16(EAP_TLV_PAC_TLV |
EAP_TLV_TYPE_MANDATORY);