svn rev #24148: trunk/src/lib/rpc/

ghudson@MIT.EDU ghudson at MIT.EDU
Sat Jun 26 13:37:20 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24148
Commit By: ghudson
Log Message:
ticket: 6746

Fix a bug in r24147 where svctcp_create() was passing the wrong length
argument to bind(), causing it to fail on Solaris.



Changed Files:
U   trunk/src/lib/rpc/svc_tcp.c
Modified: trunk/src/lib/rpc/svc_tcp.c
===================================================================
--- trunk/src/lib/rpc/svc_tcp.c	2010-06-26 03:32:55 UTC (rev 24147)
+++ trunk/src/lib/rpc/svc_tcp.c	2010-06-26 17:37:20 UTC (rev 24148)
@@ -175,7 +175,7 @@
 	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");




More information about the cvs-krb5 mailing list