From: Martin Willi Date: Wed, 19 Mar 2008 10:24:51 +0000 (-0000) Subject: fixed shared key lookup in stroke X-Git-Tag: 4.2.0~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a6993777d9fc49cded2f2fd39f7b88ec90841d;p=thirdparty%2Fstrongswan.git fixed shared key lookup in stroke --- diff --git a/src/charon/plugins/stroke/stroke.c b/src/charon/plugins/stroke/stroke.c index c92e6ee8a5..9bff144f61 100755 --- a/src/charon/plugins/stroke/stroke.c +++ b/src/charon/plugins/stroke/stroke.c @@ -626,7 +626,7 @@ static bool shared_filter(shared_data_t *data, { id_match_t my_match, other_match; - if (!(*in)->type == SHARED_ANY && !(*in)->type == data->type) + if (data->type != SHARED_ANY && (*in)->type != data->type) { return FALSE; }