summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd23/files/patch-df
blob: 93540e20940274581d9747fa48d14e1961254339 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: master/service.c
===================================================================
RCS file: /usr/home/ume/ncvs/src/cyrus-imapd/master/service.c,v
retrieving revision 1.2
diff -u -r1.2 service.c
--- master/service.c	2001/02/01 14:11:43	1.2
+++ master/service.c	2001/02/01 22:10:35
@@ -99,7 +99,13 @@
     
     /* is this a connection from the local host? */
     if (getpeername(fd, (struct sockaddr *) &sin, &len) == 0) {
-	if (((struct sockaddr *)&sin)->sa_family == AF_UNIX) {
+	switch (((struct sockaddr *)&sin)->sa_family) {
+	case AF_INET:
+#ifdef INET6
+	case AF_INET6:
+#endif
+	    break;
+	default:
 	    return 1;
 	}
     }