aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-06-18 20:07:47 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-06-18 20:07:47 +0000
commit280f6b1ab216b3710aec85a04127dbec6ffb37f1 (patch)
tree22696daa5fb9077bb778c861d9d87f30f669504d
parentd0f55e236d69885b7e6c04449b66d94f10461d61 (diff)
downloadstrongswan-280f6b1ab216b3710aec85a04127dbec6ffb37f1.tar.bz2
strongswan-280f6b1ab216b3710aec85a04127dbec6ffb37f1.tar.xz
set nexthop to him when instantiating rightallowyes template with leftnexthop == right
-rw-r--r--src/pluto/connections.c4
1 files changed, 4 insertions, 0 deletions
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 *