ike-cfg: Properly compare IKE proposals for equality

This commit is contained in:
Tobias Brunner
2014-04-03 09:46:41 +02:00
parent adc1157487
commit 23f34f6ed5
+1 -1
View File
@@ -385,7 +385,7 @@ METHOD(ike_cfg_t, equals, bool,
return FALSE;
}
e1 = this->proposals->create_enumerator(this->proposals);
e2 = this->proposals->create_enumerator(this->proposals);
e2 = other->proposals->create_enumerator(other->proposals);
while (e1->enumerate(e1, &p1) && e2->enumerate(e2, &p2))
{
if (!p1->equals(p1, p2))