From: Martin Willi Date: Tue, 31 Jul 2012 11:41:59 +0000 (+0200) Subject: Lookup IKEv1 PSK even if the peer identity is not known X-Git-Tag: 5.0.1~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f701ba838952c3ede19aaea0a4b88fa428237c6d;p=thirdparty%2Fstrongswan.git Lookup IKEv1 PSK even if the peer identity is not known --- diff --git a/src/libcharon/sa/ikev1/phase1.c b/src/libcharon/sa/ikev1/phase1.c index 6e062778b7..fee304e6f5 100644 --- a/src/libcharon/sa/ikev1/phase1.c +++ b/src/libcharon/sa/ikev1/phase1.c @@ -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);