blob: 69a0841343eee1fbfac52a03600d413bfb7c78f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Index: master/service.c
diff -u master/service.c.orig master/service.c
--- master/service.c.orig Wed Jan 22 22:52:36 2003
+++ master/service.c Wed Jan 22 22:57:20 2003
@@ -102,6 +102,9 @@
struct sockaddr_storage sin;
socklen_t len = sizeof(sin);
+ /* XXX: old FreeBSD didn't fill sockaddr correctly against AF_UNIX */
+ sin.ss_family = AF_UNIX;
+
/* is this a connection from the local host? */
if (getpeername(fd, (struct sockaddr *) &sin, &len) == 0) {
if (((struct sockaddr *)&sin)->sa_family == AF_UNIX) {
|