fixed shared key lookup in stroke
authorMartin Willi <martin@strongswan.org>
Wed, 19 Mar 2008 10:24:51 +0000 (10:24 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 19 Mar 2008 10:24:51 +0000 (10:24 -0000)
src/charon/plugins/stroke/stroke.c

index c92e6ee..9bff144 100755 (executable)
@@ -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;
        }