Check if we are not using a vendor EAP method in EAP_IDENTITY comparison.

Bug reported by Ingo Kubbilun with a patch from Reinhard Pfau, secunet AG.
This commit is contained in:
Martin Willi
2010-03-03 12:28:38 +01:00
parent 1abab9ec4f
commit aa59a7f241
@@ -251,7 +251,7 @@ static eap_payload_t* server_process_eap(private_eap_authenticator_t *this,
case NEED_MORE:
return out;
case SUCCESS:
if (type == EAP_IDENTITY)
if (!vendor && type == EAP_IDENTITY)
{
chunk_t data;