]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/auth.c
From Marco D'Itri: fix for an earlier patch from him.
[ppp.git] / pppd / auth.c
index 8a8b2fb83d44a4a74c6b0c5a2778291687340c8a..0f59f7f5b5bf3f8df4110aadde440957113c581a 100644 (file)
@@ -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 <stdio.h>
 #include <stddef.h>
@@ -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)();
-
 }
 
 /*