Subject: CVS commit: src/usr.sbin/rpcbind
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 08/27/2007 19:51:50
Module Name:	src
Committed By:	dsl
Date:		Mon Aug 27 19:51:50 UTC 2007

Modified Files:
	src/usr.sbin/rpcbind: rpcb_svc_com.c

Log Message:
This code has been broken for ~ 20 years!
Initialise the 'fromlen' parameter for recvfrom() prior to the call, instead
of passing in a 'random' value off the stack.
This should fix the problems with ypbind on current.
I suspect the old kernel was not objecting to -ve buffer lengths.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 src/usr.sbin/rpcbind/rpcb_svc_com.c

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