set nexthop to him when instantiating rightallowyes template with leftnexthop ==...
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 18 Jun 2007 20:07:47 +0000 (20:07 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 18 Jun 2007 20:07:47 +0000 (20:07 -0000)
src/pluto/connections.c

index 7bf64b4..c4d5dae 100644 (file)
@@ -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 *