From: Paul Mackerras Date: Sat, 15 Apr 2000 11:39:52 +0000 (+0000) Subject: fix the bug in non-demand mode that I inadvertently introduced X-Git-Tag: v2.4.0~21 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=56e6860d27306bcbe35b3a14f360d0f52b5940b5;p=ppp.git fix the bug in non-demand mode that I inadvertently introduced --- diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 9208fdc..676839b 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -415,6 +415,8 @@ int establish_ppp (int tty_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.