From 280f6b1ab216b3710aec85a04127dbec6ffb37f1 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Mon, 18 Jun 2007 20:07:47 +0000 Subject: set nexthop to him when instantiating rightallowyes template with leftnexthop == right --- src/pluto/connections.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/pluto/connections.c b/src/pluto/connections.c index 7bf64b472..c4d5dae4d 100644 --- a/src/pluto/connections.c +++ b/src/pluto/connections.c @@ -1307,6 +1307,10 @@ instantiate(struct connection *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; + } } struct connection * -- cgit v1.2.3