Subject: CVS commit: src/sys/compat/darwin
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 06/17/2007 21:30:11
Module Name:	src
Committed By:	dsl
Date:		Sun Jun 17 21:30:11 UTC 2007

Modified Files:
	src/sys/compat/darwin: darwin_socket.c

Log Message:
There is no need for the stackgap in sys_bind() and sys_connect().
If sa_len is zero, believing the size passed to bind/connect seems
better than trying to strlen somthing that might run off the mapped kma.
Verify the address family against the array size before indexing.


To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 src/sys/compat/darwin/darwin_socket.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.