From 190ee00c946b236526aab44f7f803c12cb71757a Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 30 Aug 2010 09:59:25 +0200 Subject: [PATCH] pluto: Fixed comparison of connections, if marks are specified. --- src/pluto/connections.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pluto/connections.c b/src/pluto/connections.c index fde3e47c0..e40641a2e 100644 --- a/src/pluto/connections.c +++ b/src/pluto/connections.c @@ -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;