EAP-FAST: Include Tunnel PAC request only after EAP authentication

This commit is contained in:
Jouni Malinen 2008-11-06 21:07:53 +02:00 committed by Jouni Malinen
parent 581a8cde77
commit 39452b4deb

View file

@ -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.