]> git.ozlabs.org Git - ppp.git/commitdiff
set exit status for loopback detected
authorPaul Mackerras <paulus@samba.org>
Thu, 13 May 1999 00:33:26 +0000 (00:33 +0000)
committerPaul Mackerras <paulus@samba.org>
Thu, 13 May 1999 00:33:26 +0000 (00:33 +0000)
pppd/lcp.c

index dbf100de476c5f8d2004027259f2eddc8eef2414..c4785a9e9c75593a5a4b470b214b2123750fbfcc 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: lcp.c,v 1.39 1999/05/12 06:19:47 paulus Exp $";
+static char rcsid[] = "$Id: lcp.c,v 1.40 1999/05/13 00:33:26 paulus Exp $";
 #endif
 
 /*
@@ -1056,6 +1056,7 @@ lcp_nakci(f, p, len)
            if (++try.numloops >= lcp_loopbackfail) {
                notice("Serial line is looped back.");
                lcp_close(f->unit, "Loopback detected");
+               status = EXIT_LOOPBACK;
            }
        } else
            try.numloops = 0;