Fix "set nexthop to him when instantiating rightallowyes template with leftnexthop == right"

This fixes commit 280f6b1ab2.
This commit is contained in:
Tobias Brunner 2011-04-14 09:31:26 +02:00
parent a9ee43e96a
commit 64f4237b1e
1 changed files with 1 additions and 1 deletions

View File

@ -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,