Package: freebsd-utils / 10.1~svn273304-1

rpc.lockd-startup-fix.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/src/usr.sbin/rpc.lockd/lockd.c
+++ b/src/usr.sbin/rpc.lockd/lockd.c
@@ -905,6 +905,7 @@
 						sin->sin_family = AF_INET;
 						sin->sin_port = htons(0);
 						sin->sin_addr.s_addr = htonl(INADDR_ANY);
+						sin->sin_len = sizeof(struct sockaddr_in);
 						res->ai_addr = (struct sockaddr*) sin;
 						res->ai_addrlen = (socklen_t)
 						    sizeof(res->ai_addr);
@@ -916,6 +917,7 @@
 						sin6->sin6_family = AF_INET6;
 						sin6->sin6_port = htons(0);
 						sin6->sin6_addr = in6addr_any;
+						sin6->sin6_len = sizeof(struct sockaddr_in6);
 						res->ai_addr = (struct sockaddr*) sin6;
 						res->ai_addrlen = (socklen_t) sizeof(res->ai_addr);
 						break;