PERFORCE change 106548 for review

Roman Divacky rdivacky at FreeBSD.org
Sat Sep 23 05:20:38 PDT 2006


http://perforce.freebsd.org/chv.cgi?CH=106548

Change 106548 by rdivacky at rdivacky_witten on 2006/09/23 12:19:48

	Return EINVAL instead of EADDRNOTAVAIL in a case of bad salen param
	to bind(). 

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#7 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#7 (text+ko) ====

@@ -615,6 +615,8 @@
 
 	error = kern_bind(td, linux_args.s, sa);
 	free(sa, M_SONAME);
+	if (error == EADDRNOTAVAIL && linux_args.namelen != sizeof(struct sockaddr_in))
+	   	return (EINVAL);
 	return (error);
 }
 


More information about the p4-projects mailing list