do not use self-installed route for IKE if routing table is 0

This commit is contained in:
Martin Willi
2008-06-17 08:04:12 +00:00
parent 9e9d3ddc12
commit 285152b33d
+7
View File
@@ -1669,6 +1669,13 @@ static host_t *get_route(private_kernel_interface_t *this, host_t *dest,
{
DESTROY_IF(src);
src = host_create_from_chunk(msg->rtm_family, rta_src, 0);
if (get_vip_refcount(this, src))
{ /* skip source address if it is installed by us */
DESTROY_IF(src);
src = NULL;
current = NLMSG_NEXT(current, len);
continue;
}
}
else
{