X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fauth.c;h=023653d5d15c0036e12437bdd6524779a2496253;hp=3d466e2e52fa097f95b72dac09ab50d4d71a9ea1;hb=3f2fe49d822135c209e9896f666b748cf2234f2e;hpb=2c872bc67b83b91ba6390f6e5e72be08e09811a1 diff --git a/pppd/auth.c b/pppd/auth.c index 3d466e2..023653d 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -32,7 +32,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: auth.c,v 1.62 2000/03/27 06:02:59 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.64 2000/04/13 12:05:57 paulus Exp $" #include #include @@ -510,6 +510,16 @@ start_networks() new_phase(PHASE_NETWORK); +#ifdef HAVE_MULTILINK + if (multilink) { + if (mp_join_bundle()) { + if (updetach && !nodetach) + detach(); + return; + } + } +#endif /* HAVE_MULTILINK */ + #if 0 if (!demand) set_filters(&pass_filter, &active_filter); @@ -571,7 +581,7 @@ auth_peer_success(unit, protocol, name, namelen) namelen = sizeof(peer_authname) - 1; BCOPY(name, peer_authname, namelen); peer_authname[namelen] = 0; - script_setenv("PEERNAME", peer_authname); + script_setenv("PEERNAME", peer_authname, 0); /* * If there is no more authentication still to be done,