]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Check if we are not using a vendor EAP method in EAP_IDENTITY comparison.
authorMartin Willi <martin@revosec.ch>
Wed, 3 Mar 2010 11:25:27 +0000 (12:25 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 3 Mar 2010 11:28:38 +0000 (12:28 +0100)
Bug reported by Ingo Kubbilun with a patch from Reinhard Pfau, secunet AG.

src/charon/sa/authenticators/eap_authenticator.c

index 16911050a2fddf1d913e1b21018e1e19962e01b1..4617c4d8d0e5c2acfa190d4365ef5baa5f61ab9a 100644 (file)
@@ -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;