Query for XAuth identity in get_other_eap_id(), too

This commit is contained in:
Martin Willi
2012-03-20 17:31:32 +01:00
parent 1b79299b89
commit beab4a90ae
+4
View 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);
}