credmgr: stop querying for secrets once we get a perfect match
This commit is contained in:
@@ -393,6 +393,10 @@ METHOD(credential_manager_t, get_shared, shared_key_t*,
|
|||||||
best_me = match_me;
|
best_me = match_me;
|
||||||
best_other = match_other;
|
best_other = match_other;
|
||||||
}
|
}
|
||||||
|
if (best_me == ID_MATCH_PERFECT && best_other == ID_MATCH_PERFECT)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
enumerator->destroy(enumerator);
|
enumerator->destroy(enumerator);
|
||||||
return found;
|
return found;
|
||||||
|
|||||||
Reference in New Issue
Block a user