]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-linux.c
fix allow-ip option, allow @login for secret meaning authenticate against
[ppp.git] / pppd / sys-linux.c
index f25e6c3c393dc70dac0300b8ac1f270dd1273fe3..154f2a74b552613b5928c7c4fad70372e4aa8868 100644 (file)
@@ -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)