Fix "set nexthop to him when instantiating rightallowyes template with leftnexthop == right"
This fixes commit 280f6b1ab2.
This commit is contained in:
@@ -1443,11 +1443,11 @@ static connection_t *instantiate(connection_t *c, const ip_address *him,
|
|||||||
|
|
||||||
connect_to_host_pair(d);
|
connect_to_host_pair(d);
|
||||||
|
|
||||||
return d;
|
|
||||||
if (sameaddr(&d->spd.that.host_addr, &d->spd.this.host_nexthop))
|
if (sameaddr(&d->spd.that.host_addr, &d->spd.this.host_nexthop))
|
||||||
{
|
{
|
||||||
d->spd.this.host_nexthop = *him;
|
d->spd.this.host_nexthop = *him;
|
||||||
}
|
}
|
||||||
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
connection_t *rw_instantiate(connection_t *c, const ip_address *him,
|
connection_t *rw_instantiate(connection_t *c, const ip_address *him,
|
||||||
|
|||||||
Reference in New Issue
Block a user