aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/ikev1/phase1.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-07-31 13:41:59 +0200
committerMartin Willi <martin@revosec.ch>2012-07-31 15:39:33 +0200
commitf701ba838952c3ede19aaea0a4b88fa428237c6d (patch)
treed357c72869f68a78b8448aabd1ac484490f79ef2 /src/libcharon/sa/ikev1/phase1.c
parent6ff1d5bb329a5053520886488d7b2bd102474315 (diff)
downloadstrongswan-f701ba838952c3ede19aaea0a4b88fa428237c6d.tar.bz2
strongswan-f701ba838952c3ede19aaea0a4b88fa428237c6d.tar.xz
Lookup IKEv1 PSK even if the peer identity is not known
Diffstat (limited to 'src/libcharon/sa/ikev1/phase1.c')
-rw-r--r--src/libcharon/sa/ikev1/phase1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcharon/sa/ikev1/phase1.c b/src/libcharon/sa/ikev1/phase1.c
index 6e062778b..fee304e6f 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);