Subject: CVS commit: src/usr.sbin/rpc.statd
To: None <source-changes@NetBSD.org>
From: Manuel Bouyer <bouyer@netbsd.org>
List: source-changes
Date: 11/27/2005 16:03:20
Module Name: src
Committed By: bouyer
Date: Sun Nov 27 16:03:20 UTC 2005
Modified Files:
src/usr.sbin/rpc.statd: statd.c
Log Message:
We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 src/usr.sbin/rpc.statd/statd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.