summaryrefslogtreecommitdiff
path: root/pflocal/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'pflocal/socket.c')
-rw-r--r--pflocal/socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pflocal/socket.c b/pflocal/socket.c
index 65da7487..ce1edd82 100644
--- a/pflocal/socket.c
+++ b/pflocal/socket.c
@@ -178,9 +178,11 @@ S_socket_accept (struct sock_user *user,
err = ensure_connq (sock);
if (!err)
{
+ struct timespec noblock = {0, 0};
struct sock *peer_sock;
- err = connq_listen (sock->listen_queue, sock->flags & SOCK_NONBLOCK,
+ err = connq_listen (sock->listen_queue,
+ (sock->flags & SOCK_NONBLOCK) ? &noblock : NULL,
&peer_sock);
if (!err)
{