X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/46401b81fe5fab9b0d3d3a5f5764bafa3f9c0b86..8743c77697568c88131c3c39a0b1e002e1fa09a0:/server/peer.c diff --git a/server/peer.c b/server/peer.c index 456efd77..ec89f771 100644 --- a/server/peer.c +++ b/server/peer.c @@ -753,14 +753,14 @@ peer *p_create(peerspec *spec) T( trace(T_TUNNEL, "peer: attached interface %s to peer `%s'", p->ifname, p_name(p)); ) p_setkatimer(p); - if (kx_init(&p->kx, p, &p->ks, p->spec.kxf)) + if (kx_init(&p->kx, p, &p->ks, p->spec.f & PSF_KXMASK)) goto tidy_4; a_notify("ADD", "?PEER", p, "%s", p->ifname, "?ADDR", &p->spec.sa, A_END); - if (!(p->spec.kxf & KXF_CORK)) { + if (!(p->spec.f & KXF_CORK)) { a_notify("KXSTART", "?PEER", p, A_END); /* Couldn't tell anyone before */ }