Date: Sat, 23 Sep 2006 12:20:36 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 106548 for review Message-ID: <200609231220.k8NCKaSn054531@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106548 Change 106548 by rdivacky@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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609231220.k8NCKaSn054531>