fixed load-tester shared key lookup
authorMartin Willi <martin@strongswan.org>
Tue, 9 Dec 2008 14:45:56 +0000 (14:45 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 9 Dec 2008 14:45:56 +0000 (14:45 -0000)
src/charon/plugins/load_tester/load_tester_creds.c

index a208726..476a90b 100644 (file)
@@ -280,11 +280,11 @@ static enumerator_t* create_shared_enumerator(private_load_tester_creds_t *this,
        {
                return NULL;
        }
-       if (me && !this->id->matches(this->id, me))
+       if (me && !me->matches(me, this->id))
        {
                return NULL;
        }
-       if (other && !this->id->matches(this->id, other))
+       if (other && !other->matches(other, this->id))
        {
                return NULL;
        }