summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ppp/pppctl/pppctl.c4
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)