Don't compare initiator flag in IKE_SA manager, pass initiator parameter to IKE_SA constructor

This commit is contained in:
Martin Willi
2012-03-20 17:30:47 +01:00
parent 1b99befac3
commit 17ec1c74de
5 changed files with 13 additions and 20 deletions
+2 -12
View File
@@ -77,18 +77,8 @@ METHOD(ike_sa_id_t, equals, bool,
{
return FALSE;
}
if ((this->is_initiator_flag == other->is_initiator_flag) &&
(this->initiator_spi == other->initiator_spi) &&
(this->responder_spi == other->responder_spi))
{
/* private_ike_sa_id's are equal */
return TRUE;
}
else
{
/* private_ike_sa_id's are not equal */
return FALSE;
}
return this->initiator_spi == other->initiator_spi &&
this->responder_spi == other->responder_spi;
}
METHOD(ike_sa_id_t, replace_values, void,