X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmain.c;h=982ab55c4e4198ab401793a79f47ff72337e151e;hp=2e0604b4e55be95dd97da6aa648f549fcf2a90cd;hb=2c872bc67b83b91ba6390f6e5e72be08e09811a1;hpb=a95c8a6bd20ed07722b8cef75f547c6e5550e68b diff --git a/pppd/main.c b/pppd/main.c index 2e0604b..982ab55 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: main.c,v 1.90 2000/03/13 23:39:58 paulus Exp $" +#define RCSID "$Id: main.c,v 1.91 2000/03/27 06:03:01 paulus Exp $" #include #include @@ -781,7 +781,7 @@ main(argc, argv) goto disconnect; } - if (!demand) { + if (!demand && ifunit >= 0) { info("Using interface ppp%d", ifunit); slprintf(ifname, sizeof(ifname), "ppp%d", ifunit);