summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2003-09-07 07:50:29 +0000
committertedu <tedu@openbsd.org>2003-09-07 07:50:29 +0000
commitbd9a0d1806861666273d7b7b434bb13b09e9ce5c (patch)
treef3bf861dc8cc7b1a2e263056c0d5edf48b119fa7
parentFix system hangs some i386 machines experienced when booting with the (diff)
downloadwireguard-openbsd-bd9a0d1806861666273d7b7b434bb13b09e9ce5c.tar.xz
wireguard-openbsd-bd9a0d1806861666273d7b7b434bb13b09e9ce5c.zip
fix crash. pr3454 from openbsd at rukh.net. ok deraadt@
-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)