summaryrefslogtreecommitdiff
path: root/src/net/SocketUtil.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/SocketUtil.cxx')
-rw-r--r--src/net/SocketUtil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/SocketUtil.cxx b/src/net/SocketUtil.cxx
index f2910e7a0..94ce47d0d 100644
--- a/src/net/SocketUtil.cxx
+++ b/src/net/SocketUtil.cxx
@@ -35,7 +35,7 @@ socket_bind_listen(int domain, int type, int protocol,
throw MakeSocketError("Failed to create socket");
#ifdef HAVE_UN
- if (domain == AF_UNIX) {
+ if (domain == AF_LOCAL) {
/* Prevent access until right permissions are set */
fchmod(fd.Get(), 0);
}