]> git.ozlabs.org Git - ppp.git/commitdiff
fix the bug in non-demand mode that I inadvertently introduced
authorPaul Mackerras <paulus@samba.org>
Sat, 15 Apr 2000 11:39:52 +0000 (11:39 +0000)
committerPaul Mackerras <paulus@samba.org>
Sat, 15 Apr 2000 11:39:52 +0000 (11:39 +0000)
pppd/sys-linux.c

index 9208fdc6cf556dd1b4edcf06ad759b1ed25d1991..676839bf359ad52d6b2d8715fa60cdfa0cb27dc8 100644 (file)
@@ -415,6 +415,8 @@ int establish_ppp (int tty_fd)
            warn("Couldn't set /dev/ppp (channel) to nonblock: %m");
        set_ppp_fd(fd);
 
            warn("Couldn't set /dev/ppp (channel) to nonblock: %m");
        set_ppp_fd(fd);
 
+       if (!looped)
+           ifunit = -1;
        if (!looped && !multilink) {
            /*
             * Create a new PPP unit.
        if (!looped && !multilink) {
            /*
             * Create a new PPP unit.