Clear virtual IPs before storing assigned ones on the IKE_SA
Otherwise we'll end up with duplicate or invalid VIPs stored on the IKE_SA.
This commit is contained in:
@@ -344,6 +344,8 @@ METHOD(task_t, build_r, status_t,
|
||||
vips = linked_list_create();
|
||||
pools = linked_list_create();
|
||||
|
||||
this->ike_sa->clear_virtual_ips(this->ike_sa, FALSE);
|
||||
|
||||
enumerator = this->vips->create_enumerator(this->vips);
|
||||
while (enumerator->enumerate(enumerator, &requested))
|
||||
{
|
||||
@@ -437,6 +439,8 @@ METHOD(task_t, process_i, status_t,
|
||||
|
||||
process_payloads(this, message);
|
||||
|
||||
this->ike_sa->clear_virtual_ips(this->ike_sa, TRUE);
|
||||
|
||||
enumerator = this->vips->create_enumerator(this->vips);
|
||||
while (enumerator->enumerate(enumerator, &host))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user