Fixed handling of IKE_SAs without a virtual IP in farp plugin
This commit is contained in:
@@ -87,11 +87,14 @@ METHOD(listener_t, message_hook, bool,
|
|||||||
host_t *ip;
|
host_t *ip;
|
||||||
|
|
||||||
ip = ike_sa->get_virtual_ip(ike_sa, FALSE);
|
ip = ike_sa->get_virtual_ip(ike_sa, FALSE);
|
||||||
ip = ip->clone(ip);
|
if (ip)
|
||||||
this->lock->write_lock(this->lock);
|
{
|
||||||
ip = this->ips->put(this->ips, ip, ip);
|
ip = ip->clone(ip);
|
||||||
this->lock->unlock(this->lock);
|
this->lock->write_lock(this->lock);
|
||||||
DESTROY_IF(ip);
|
ip = this->ips->put(this->ips, ip, ip);
|
||||||
|
this->lock->unlock(this->lock);
|
||||||
|
DESTROY_IF(ip);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user