diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-09-07 07:50:30 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-09-07 07:50:30 +0000 |
commit | dff5c370f855097d153ae1aa6c09261cd6513044 (patch) | |
tree | b20b551a23a54d63415e12a74661f106e87c17e6 /usr.sbin/ppp/pppctl | |
parent | 9de65cb9b9f7151144e50adacec0cbff25a1ef63 (diff) |
fix crash. pr3454 from openbsd at rukh.net. ok deraadt@
Diffstat (limited to 'usr.sbin/ppp/pppctl')
-rw-r--r-- | usr.sbin/ppp/pppctl/pppctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/pppctl/pppctl.c b/usr.sbin/ppp/pppctl/pppctl.c index 0ab0b81d70f..555b11c5a25 100644 --- a/usr.sbin/ppp/pppctl/pppctl.c +++ b/usr.sbin/ppp/pppctl/pppctl.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pppctl.c,v 1.13 2003/08/19 23:57:09 deraadt Exp $ + * $Id: pppctl.c,v 1.14 2003/09/07 07:50:29 tedu Exp $ */ #include <sys/types.h> @@ -166,7 +166,7 @@ check_fd(int sig) int len; pfd[0].fd = data; - pfd[1].events = POLLIN; + pfd[0].events = POLLIN; if (poll(pfd, 1, 0) > 0) { len = read(data, buf, sizeof buf); if (len > 0) |