Subject: CVS commit: syssrc/sys/kern
To: None <source-changes@netbsd.org>
From: Havard Eidnes <he@netbsd.org>
List: source-changes
Date: 06/10/2002 23:43:18
Module Name:	syssrc
Committed By:	he
Date:		Mon Jun 10 20:43:18 UTC 2002

Modified Files:
	syssrc/sys/kern: uipc_socket.c

Log Message:
In soreceive(), if any part of a received record has been freed,
and an error occurs, make sure the socket doesn't retain a partial
copy by dropping the rest of the record.

This would otherwise trigger a panic("receive 1a") under DIAGNOSTIC.

Fixes PR#16990, suggested fix adapted.

Reviewed by Matt Thomas.


To generate a diff of this commit:
cvs rdiff -r1.66 -r1.67 syssrc/sys/kern/uipc_socket.c

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