pluto: Fixed comparison of connections, if marks are specified.

This commit is contained in:
Tobias Brunner 2010-08-30 09:59:25 +02:00
parent a280ba9525
commit 190ee00c94
1 changed files with 8 additions and 0 deletions

View File

@ -3116,6 +3116,10 @@ connection_t *route_owner(connection_t *c, struct spd_route **srp,
{
continue;
}
if (src->mark_out.value != srd->mark_out.value)
{
continue;
}
passert(oriented(*d));
if (srd->routing > best_routing)
{
@ -3136,6 +3140,10 @@ connection_t *route_owner(connection_t *c, struct spd_route **srp,
{
continue;
}
if (src->mark_in.value != srd->mark_in.value)
{
continue;
}
if (srd->routing > best_erouting)
{
best_ero = d;