[PATCH] TNC: Send PEAP(TNC) EAP-Failure

Masashi Honma honma
Fri Mar 13 00:50:12 PDT 2009


Hello.

On PEAP(TNC), hostapd integrated RADIUS server doesn't return EAP-Filure
when "Recommendation = none". So, EAP data retransmittion occurs.

My co-worker "Ryuji Ohba" made below patch.

diff --git a/src/eap_server/eap_tnc.c b/src/eap_server/eap_tnc.c
index 834685b..4cb3ecf 100644
--- a/src/eap_server/eap_tnc.c
+++ b/src/eap_server/eap_tnc.c
@@ -500,7 +500,7 @@ static void eap_tnc_process(struct eap_sm *sm, void *priv,
 static Boolean eap_tnc_isDone(struct eap_sm *sm, void *priv)
 {
        struct eap_tnc_data *data = priv;
-       return data->state == DONE;
+       return data->state == DONE || data->state == FAIL;
 }

Regards,
Masashi Honma.



More information about the Hostap mailing list