X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Fauth.c;h=0f59f7f5b5bf3f8df4110aadde440957113c581a;hb=b993076434daff2202734f5ab4eb4f06dcbbe6b3;hp=8a8b2fb83d44a4a74c6b0c5a2778291687340c8a;hpb=637346ba24c289c5a0485651c05baa3f7c22a6b8;p=ppp.git diff --git a/pppd/auth.c b/pppd/auth.c index 8a8b2fb..0f59f7f 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -68,7 +68,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: auth.c,v 1.101 2004/11/12 10:30:51 paulus Exp $" +#define RCSID "$Id: auth.c,v 1.103 2005/03/21 09:20:16 paulus Exp $" #include #include @@ -532,9 +532,12 @@ void link_required(unit) int unit; { + char *msg; + new_phase(PHASE_SERIALCONN); devfd = the_channel->connect(); + msg = "Connect script failed"; if (devfd < 0) goto fail; @@ -547,6 +550,7 @@ link_required(unit) * gives us. Thus we don't need the tdb_writelock/tdb_writeunlock. */ fd_ppp = the_channel->establish_ppp(devfd); + msg = "ppp establishment failed"; if (fd_ppp < 0) { status = EXIT_FATAL_ERROR; goto disconnect; @@ -580,7 +584,6 @@ link_required(unit) new_phase(PHASE_DEAD); if (the_channel->cleanup) (*the_channel->cleanup)(); - } /*