EAP-FAST: Include Tunnel PAC request only after EAP authentication
authorJouni Malinen <jouni.malinen@atheros.com>
Thu, 6 Nov 2008 19:07:53 +0000 (21:07 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 6 Nov 2008 19:07:53 +0000 (21:07 +0200)
src/eap_peer/eap_fast.c

index 05b28bb..4c774a4 100644 (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.