argument to bind(), causing it to fail on Solaris.
ticket: 6746
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24148
dc483132-0cff-0310-8789-
dd5450dbe970
sin.sin_family = AF_INET;
if (bindresvport(sock, &sin)) {
sin.sin_port = 0;
- (void)bind(sock, (struct sockaddr *)&sin, len);
+ (void)bind(sock, (struct sockaddr *)&sin, sizeof(sin));
}
if (getsockname(sock, (struct sockaddr *)&addr, &len) != 0) {
perror("svc_tcp.c - cannot getsockname");