aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_fast.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2008-11-06 19:07:53 (GMT)
committerJouni Malinen <j@w1.fi>2008-11-06 19:07:53 (GMT)
commit39452b4deb1c7c6f30882edda729218d55c176cb (patch)
tree2117074dcef3bdff773e6d65b8d508ee1593dd7a /src/eap_peer/eap_fast.c
parent581a8cde77670ba7de2cce57f4a723ba435df9b7 (diff)
downloadhostap-39452b4deb1c7c6f30882edda729218d55c176cb.zip
hostap-39452b4deb1c7c6f30882edda729218d55c176cb.tar.gz
hostap-39452b4deb1c7c6f30882edda729218d55c176cb.tar.bz2
EAP-FAST: Include Tunnel PAC request only after EAP authentication
Diffstat (limited to 'src/eap_peer/eap_fast.c')
-rw-r--r--src/eap_peer/eap_fast.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eap_peer/eap_fast.c b/src/eap_peer/eap_fast.c
index 05b28bb..4c774a4 100644
--- a/src/eap_peer/eap_fast.c
+++ b/src/eap_peer/eap_fast.c
@@ -1194,7 +1194,9 @@ static int eap_fast_process_decrypted(struct eap_sm *sm,
}
if (data->current_pac == NULL && data->provisioning &&
- !data->anon_provisioning && !tlv.pac) {
+ !data->anon_provisioning && !tlv.pac &&
+ (tlv.iresult == EAP_TLV_RESULT_SUCCESS ||
+ tlv.result == EAP_TLV_RESULT_SUCCESS)) {
/*
* Need to request Tunnel PAC when using authenticated
* provisioning.