]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Query for XAuth identity in get_other_eap_id(), too
authorMartin Willi <martin@revosec.ch>
Wed, 4 Jan 2012 16:32:41 +0000 (17:32 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:32 +0000 (17:31 +0100)
src/libcharon/sa/ike_sa.c

index 73b4ba24b536ca6ea327d47b7d7902f0a1de909c..d659a3c681398cf3a0370f3a0a0b87bc8a340d05 100644 (file)
@@ -1182,6 +1182,10 @@ METHOD(ike_sa_t, get_other_eap_id, identification_t*,
                /* prefer EAP-Identity of last round */
                current = cfg->get(cfg, AUTH_RULE_EAP_IDENTITY);
                if (!current || current->get_type(current) == ID_ANY)
+               {
+                       current = cfg->get(cfg, AUTH_RULE_XAUTH_IDENTITY);
+               }
+               if (!current || current->get_type(current) == ID_ANY)
                {
                        current = cfg->get(cfg, AUTH_RULE_IDENTITY);
                }