We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0aae0 commit 6db6ea7Copy full SHA for 6db6ea7
net/9p/trans_fd.c
@@ -950,7 +950,7 @@ static int p9_bind_privport(struct socket *sock)
950
951
memset(&cl, 0, sizeof(cl));
952
cl.sin_family = AF_INET;
953
- cl.sin_addr.s_addr = INADDR_ANY;
+ cl.sin_addr.s_addr = htonl(INADDR_ANY);
954
for (port = p9_ipport_resv_max; port >= p9_ipport_resv_min; port--) {
955
cl.sin_port = htons((ushort)port);
956
err = kernel_bind(sock, (struct sockaddr *)&cl, sizeof(cl));
0 commit comments