- baschtel

- works initiating, results in shared secret
This commit is contained in:
Martin Willi committed 2005-11-18 16:29:14 +00:00
1 parent 90ef6620a2
commit daa1c00e9f
8 files changed
+441 -37

No files matched your search

+9 -1
View File
@@ -148,7 +148,15 @@ static bool is_initiator(private_ike_sa_id_t *this)
*/
static bool switch_initiator(private_ike_sa_id_t *this)
{
return (this->is_initiator_flag = !this->is_initiator_flag);
if (this->is_initiator_flag)
{
this->is_initiator_flag = FALSE;
}
else
{
this->is_initiator_flag = TRUE;
}
return this->is_initiator_flag;
}