X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=154f2a74b552613b5928c7c4fad70372e4aa8868;hp=f25e6c3c393dc70dac0300b8ac1f270dd1273fe3;hb=141e4209b6e794a91035fa1cb63ab88fca0fb150;hpb=00c0882b073af34555603c46a12b48e5d08df135 diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index f25e6c3..154f2a7 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -442,8 +442,9 @@ int establish_ppp (int tty_fd) */ set_ppp_fd (tty_fd); if (ioctl(tty_fd, PPPIOCGUNIT, &x) < 0) { - if ( ! ok_error (errno)) - fatal("ioctl(PPPIOCGUNIT): %m(%d)", errno); + if (ok_error (errno)) + goto err; + fatal("ioctl(PPPIOCGUNIT): %m(%d)", errno); } /* Check that we got the same unit again. */ if (looped && x != ifunit)