Lookup IKEv1 PSK even if the peer identity is not known

This commit is contained in:
Martin Willi
2012-07-31 15:39:33 +02:00
parent 6ff1d5bb32
commit f701ba8389
+1 -1
View File
@@ -169,7 +169,7 @@ static shared_key_t *lookup_shared_key(private_phase1_t *this,
{
my_id = my_auth->get(my_auth, AUTH_RULE_IDENTITY);
other_id = other_auth->get(other_auth, AUTH_RULE_IDENTITY);
if (my_id && other_id)
if (my_id)
{
shared_key = lib->credmgr->get_shared(lib->credmgr, SHARED_IKE,
my_id, other_id);