diff options
| author | 2007-05-15 06:22:32 +0000 | |
|---|---|---|
| committer | 2007-05-15 06:22:32 +0000 | |
| commit | 6bf824b05bf049745b009b1c19908995f709265b (patch) | |
| tree | 07566501014dba21226da99ae7f4ec93f68f33fe /usr.sbin/dhcpd/pfutils.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-6bf824b05bf049745b009b1c19908995f709265b.tar.xz wireguard-openbsd-6bf824b05bf049745b009b1c19908995f709265b.zip | |
use the correct fd for poll. we're waiting on the pipe, not pf
ok ckuethe deraadt
Diffstat (limited to 'usr.sbin/dhcpd/pfutils.c')
| -rw-r--r-- | usr.sbin/dhcpd/pfutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/pfutils.c b/usr.sbin/dhcpd/pfutils.c index 64bd9de0262..6d806fa80e1 100644 --- a/usr.sbin/dhcpd/pfutils.c +++ b/usr.sbin/dhcpd/pfutils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfutils.c,v 1.6 2006/10/20 19:45:02 deraadt Exp $ */ +/* $OpenBSD: pfutils.c,v 1.7 2007/05/15 06:22:32 tedu Exp $ */ /* * Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org> * @@ -67,7 +67,7 @@ pftable_handler() l = sizeof(struct pf_cmd); for (;;) { - pfd[0].fd = fd; + pfd[0].fd = pfpipe[0]; pfd[0].events = POLLIN; if ((nfds = poll(pfd, 1, -1)) == -1) if (errno != EINTR) |
