From 64f4237b1e62aded6a32f4bb5a7ea89a576561fd Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 14 Apr 2011 09:31:26 +0200 Subject: [PATCH] Fix "set nexthop to him when instantiating rightallowyes template with leftnexthop == right" This fixes commit 280f6b1ab2. --- src/pluto/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pluto/connections.c b/src/pluto/connections.c index 9f277e135..e1b471b23 100644 --- a/src/pluto/connections.c +++ b/src/pluto/connections.c @@ -1443,11 +1443,11 @@ static connection_t *instantiate(connection_t *c, const ip_address *him, connect_to_host_pair(d); - return d; if (sameaddr(&d->spd.that.host_addr, &d->spd.this.host_nexthop)) { d->spd.this.host_nexthop = *him; } + return d; } connection_t *rw_instantiate(connection_t *c, const ip_address *him,