From: Martin Willi Date: Tue, 18 Mar 2008 12:40:41 +0000 (-0000) Subject: fixed ike_cfg lookup in stroke X-Git-Tag: 4.2.0~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7162be5772e5eac162c33e35add99cfc5a6ab086;p=thirdparty%2Fstrongswan.git fixed ike_cfg lookup in stroke --- diff --git a/src/charon/plugins/stroke/stroke.c b/src/charon/plugins/stroke/stroke.c index c3ee3305d2..6af5ebefc1 100755 --- a/src/charon/plugins/stroke/stroke.c +++ b/src/charon/plugins/stroke/stroke.c @@ -1356,7 +1356,7 @@ static bool ike_filter(ike_data_t *data, peer_cfg_t **in, ike_cfg_t **out) me = ike_cfg->get_my_host(ike_cfg); other = ike_cfg->get_other_host(ike_cfg); if ((!data->me || me->is_anyaddr(me) || me->ip_equals(me, data->me)) && - (!data->other || other->is_anyaddr(other) || other->ip_equals(other, data->me))) + (!data->other || other->is_anyaddr(other) || other->ip_equals(other, data->other))) { *out = ike_cfg; return TRUE;