Subject: CVS commit: src/sys/kern
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 05/16/2003 14:01:58
Module Name:	src
Committed By:	christos
Date:		Fri May 16 14:01:57 UTC 2003

Modified Files:
	src/sys/kern: vfs_subr.c

Log Message:
Fix a variety of kernel panics related to unchecked export data:
1. sa_len was not properly checked.
2. sa_family was not properly checked [even used as an array index!]
3. we only know about inet4 and inet6, so make sure that the corresponding
   data is valid before using it.
4. keep reference counts of addresses used (is that necessary?)


To generate a diff of this commit:
cvs rdiff -r1.194 -r1.195 src/sys/kern/vfs_subr.c

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