[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The protocol of an AF_UNIX socket should be 0.

Signed-off-by: Fabien Siron <fabien.siron@xxxxxxxx>
---
 net/proto-unix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/proto-unix.c b/net/proto-unix.c
index 2ef0457..8d1ee9a 100644
--- a/net/proto-unix.c
+++ b/net/proto-unix.c
@@ -24,7 +24,7 @@ static void unix_gen_sockaddr(struct sockaddr **addr, socklen_t *addrlen)
 
 static void unix_rand_socket(struct socket_triplet *st)
 {
-	st->protocol = PF_UNIX;
+	st->protocol = 0;
 
 	switch (rnd() % 3) {
 	case 0: st->type = SOCK_STREAM;
-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux