- baschtel
- works initiating, results in shared secret
This commit is contained in:
1 parent
90ef6620a2
commit
daa1c00e9f
8 files changed
+441
-37
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user