summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldapd/util.c
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2015-11-02 06:32:51 +0000
committerjmatthew <jmatthew@openbsd.org>2015-11-02 06:32:51 +0000
commit576ea306f407aa35fb8c824f0219cd945bd2562c (patch)
treecb7b13dd6d01abc5a69b1b24e084d413a6b5bab0 /usr.sbin/ldapd/util.c
parentFix typo: s/DT_JUMPREL/DT_JMPREL/ (diff)
downloadwireguard-openbsd-576ea306f407aa35fb8c824f0219cd945bd2562c.tar.xz
wireguard-openbsd-576ea306f407aa35fb8c824f0219cd945bd2562c.zip
use SOCK_NONBLOCK instead of fcntl
ok dlg@
Diffstat (limited to 'usr.sbin/ldapd/util.c')
-rw-r--r--usr.sbin/ldapd/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldapd/util.c b/usr.sbin/ldapd/util.c
index eb30dc1edf7..8a7e283c2de 100644
--- a/usr.sbin/ldapd/util.c
+++ b/usr.sbin/ldapd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.5 2013/11/23 18:02:44 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.6 2015/11/02 06:32:51 jmatthew Exp $ */
/*
* Copyright (c) 2009 Martin Hedenfalk <martin@bzero.se>
@@ -210,5 +210,5 @@ accept_reserve(int sockfd, struct sockaddr *addr, socklen_t *addrlen,
return -1;
}
- return accept(sockfd, addr, addrlen);
+ return accept4(sockfd, addr, addrlen, SOCK_NONBLOCK);
}